Create a function that writes to a file named Inventy.txt the information of 8 items. Ask the user for the item's name, the item's quantity in storage, and the item's price and write it to the file. Create a function that reads the file and items' quantity and price to two different arrays. Create a function that computes the subtotal of each item. Implement all functions inside the main program and the computed value should be displayed with the item's name.
Q: Given: 13-Node Graph O 75 ΑΠ 118 T Z M to B-241 O to B-380 P to B-100 RV to B-193 140 S to B-253 T…
A: Please refer below for your reference: The A* algorithm helps us in searching for the shortest path…
Q: A discussion of the distinctions between threads and processes, as well as the scheduling of…
A: Introduction --> Each thread has a priority that is determined. Initial allocation of…
Q: user_num = int(input('Enter integer:\n')) Extend the given program as indicated. Output the user's…
A: Here, after taking input from the user, I have printed the number on the console. Next, I have…
Q: Explain the following terms in Excel with Example SumIF SumIFS CountIFS Vlook up…
A: “Since you have posted a question with multiple sub-parts, we will solve first three sub-parts for…
Q: What makes up the Internet's infrastructure?
A: Answer:
Q: As a network administrator, when would you find it helpful to utilise a static route setting?
A: The types of routing are:- 1. Static 2. Dynamic
Q: As far as I can tell, the programme is a scheduling tool. Explain what makes a good process…
A: Scheduling Tool: What is software for project scheduling? Simply said, it is a tool that will assist…
Q: What certifications are needed to work in artificial intelligence and machine learning?
A: Artificial Intelligence: Artificial intelligence (AI) is the emulation of human intellect in devices…
Q: documentation as a primary focus Is this not the case in the conversion phase of the development…
A: Documentation: Software documentation is the information that explains the product to the…
Q: Give an explanation of virtualization, including its advantages and disadvantages.
A: Virtualization Virtualization in computing is generating a virtual version of something, such as…
Q: Describe the many levels of memory that are found in a modern computer system.
A: Memory hierarchy : The memory hierarchy organizes computer storage into a hierarchy dependent on…
Q: You have been tasked, in your capacity as a network administrator, to set up a brand-new computer…
A: Introduction: Second-stage network management involves setup and configuration. This involves…
Q: Using whatever method you want, find and prove the answers to the following n° 0.51 T(n)=27(n/4)+…
A: The answer is given below.
Q: Create a Java program that detects whether the mouse is clicked inside or outside a circle. The…
A: We need to use the MouseListener class and the paint method) to draw a circle and show the result…
Q: Problem 2. Using method of your choice, determine and prove the solution to the following…
A: According to bartleby guidelines we need to solve only three sub questions so I have answered first…
Q: What role does data modelling play in the analysis process, and how valuable is it in this process?…
A: Building a data model for the information that will be kept in a database is referred to as "data…
Q: When you open a new Visual C# project in the Designer, what is automatically generated and…
A: The solution to the given question is: When a new project is started in a Visual C# project , Visual…
Q: Which different kinds of fields are involved in the process of giving instructions?
A: Introduction: An instruction consists of three basic areas, which vary depending on the kind of…
Q: For some reason I have 2 programs that aren't running. This is the second one, please let me know if…
A: This sort of import proclamation is vital. They tell the arrange of which sort of Scanner you are…
Q: An algorithm is the name given to the detailed set of instructions that may be followed to solve a…
A: Having said that: An "algorithm" is the term given to the series of step-by-step instructions that…
Q: Adding modules from the highest level to the lowest level is known as "top-down programming," and…
A: Likewise called "stepwise refinement," a product improvement method forces a progressive structure…
Q: Recognize the benefits and drawbacks of today's networked world.
A: Networked world: Students from several nations work together on a scientific project over the World…
Q: Roman loves to make software. You have recently created a new open-source project that is gaining…
A: Inbound and outbound details: The first line of input contains a single number T indicating the…
Q: What is it about the idea of a file that makes it so powerful, despite the fact that it is so…
A: Introduction: You will require a file format if you wish to store information on your computer. It…
Q: Is there a way to prevent the likelihood that an application problem is the result of another…
A: Consider the currently running Microsoft Office application. A background software or service can…
Q: Engineer to the user together with any remarks pertaining to IT engineers, and also assign the group…
A: SUMMARY Essential Skills Needed To Manage Your TeamSo you just got a new job as a manager.…
Q: What Kinds Of Operations Can Typically Be Carried Out On A Data Structure?
A: A data structure arranges information in a computer's memory for quick and effective use. For the…
Q: Which type of IP addressing creates subnets that may be further divided into smaller subnets?
A: Here is the explanation regarding subnetting:
Q: Find the minimum (smallest) value in the list D. And determine the alogrithms list…
A: Input: arr[] = {10,9,8,7,6,5,4,3,2,1,0,-1}Output: The smallest element is -1 and second…
Q: The characteristic that is present on the majority of controls determines, at run time, whether or…
A: Due to it, Most controls have a property that determines whether or not they are shown on the form…
Q: describe the usefulness of a data model in relation to the traditional way of predicting strength.
A: The value of a data model: Within the framework of the traditional approach to a strength prediction…
Q: lly Be Carried Out O
A: What Kinds Of Operations Can Typically Be Carried Out On A Data Structure?
Q: The term SI appears in a drawing layout I have. "It's a
A: Layout in Drawing: Layout Diagrams. The criteria for design development are shown in a layout…
Q: Adding modules from the highest level to the lowest level is known as "top-down programming," and…
A: Answer:
Q: Give a quick explanation of control registers.
A: Give a quick explanation of control registers. CPU is an abbreviation for "central processing unit,"…
Q: How important is data modelling to the analytical process? The amount of data we'll need for our…
A: Data modelling: The criteria for employing data in a data modelling process are provided by the…
Q: What are the three different kinds of page layouts that CSS supports?
A: Please find the detailed answer in the following steps.
Q: create a flowchart for this program: Enhanced security and anti-fraud protection Use of string…
A: The flow chart for the given program is represented in Step 2.
Q: Create a function that transforms sentences ending with multiple question marks? or exclamation…
A: 1. Created the new method and pass the string arguments2. Add the replace logic.3. return the String
Q: What do you believe is the most critical aspect of transitioning from a serial to a batch processing…
A: The most critical element of the shift from a serial processing system to a batch processing system…
Q: Which of the following is not a difference between user-level threads and kernel-level threads? When…
A: Introduction: User-created threads: Users implement user-created threads. Setting up user threads is…
Q: oes the term "process control block" come into play. you must use yo
A: Introduction: Below describe the term "process control block"
Q: Could you please explain the Write Through method?
A: Here is the example regarding write through:
Q: a c++ ■
A: Given :- In the above given question, a memory layout is mention in the above given question Need…
Q: Problem No.2 Given: Binary Tree B E /\ ΊΛΛΛΛΛΛ /\ AD AE P Q R S T U V W X Y Z AA Problem: Generate…
A: Breadth-First Search(BFS) is traversing algorithm which tries to be as close to start point as…
Q: How do you determine whether a problem in one application is being caused by a problem in another…
A: Start: Take a look at a programme that is now being executed by Microsoft Office. A problem with…
Q: What precisely does it mean to schedule anything "preemptively"
A: Preemptive scheduling is a well-known and exquisite scheduling system. A straightforward perspective…
Q: 3. () Apply Warshall's algorithm to find transitive closure of the following digraph. Give its…
A:
Q: Alternatively, could you maybe explain the metrics utilised in the software development cycle in…
A: We have chosen the metrics below because they provide accurate information about the end user…
Q: What exactly is meant by the term "telecommunications network protocol"?
A: What what is meant by the term "telecommunications network protocol," and how exactly does one work?…
C++ Language
Step by step
Solved in 4 steps with 3 images
- INSTRUCTION: C++ Language Create a function that writes to a file named Inventy.txt the information of 8 items. Ask the user for the item's name, the item's quantity in storage, and the item's price and write it to the file. Create a function that reads the file and items' quantity and price to two different arrays. Create a function that computes the subtotal of each item. Implement all functions inside the main program and the computed value should be displayed with the item's name.Finish this program from the code posted below! Note: There should be two files Main.py and Contact.py You will implement the edit_contact function. In the function, do the following: Ask the user to enter the name of the contact they want to edit. If the contact exists, in a loop, give them the following choices Remove one of the phone numbers from that Contact. Add a phone number to that Contact. Change that Contact's email address. Change that Contact's name (if they do this, you will have to remove the key/value pair from the dictionary and re-add it, since the key is the contact’s name. Use the dictionary's pop method for this!) Stop editing the Contact Once the user is finished making changes to the Contact, the function should return. Code:from Contact import Contactimport pickledef load_contacts():""" Unpickle the data on mydata.dat and save it to a dictionaryReturn an empty dictionary if the file doesn't exist """try:with open("mydata.dat", 'rb') as file:return…Python - Next Birthdate In this task, we will write a program that reads birthdate data from a given CSV file, and given the current date, determines which person's birthday will be celebrated next. Create a function with the following signature: nextBirthdate(filename, date) filename: parameter, which represents the CSV filename. date: parameter, which represents the current date. The function should open the CSV file, read the birthdate data, and determine which person's birthday will be celebrated next, given the current date. The name of the person should be returned. In other words, given a date, find the person whose birthday is next. Sample Run birthdates.csv Draven Brock, 01/21/1952 Easton Mclean, 09/02/1954 Destiny Pacheco, 10/10/1958 Ariella Wood, 12/20/1961 Keely Sanders, 08/03/1985 Bryan Sloan,04/06/1986 Shannon Brewer, 05/11/1986 Julianne Farrell,01/29/2000 Makhi Weeks, 03/20/2000 Lucian Fields, 08/02/2018 Function Call nextBirthdate("birthdates.csv", "01/01/2022") Output…
- Write the code in python Create an application that can create, display, search and maintain the book information for a bookstore. Requirements: 1) you need to use functions to write code for each menu item. 2) Information of books will be saved in a file, e.g,, books.txt. 3)User can add any number of books to the booklist. There can be 5 books or 500 books. In order for your program to handle it without any changes in the code, you cannot hardcode the number of books in your program.Print Person Information from file In this lab you are asked to complete the function : print_person_from_file(person_name, filename). This function should read in data from the file filename and print the information for person_name if it is found in the file. The file filename contains lines, in comma separated format (with a 'csv' extension) For each line, the items in each field are as follows: Field 1 3 4 Name Place of Birth Date of Birth Children For Children: • a person can have 0, 1 or multiple Children Multiple children are semi-colon separated If a person has no children the field contains 'NA' For example, consider the following lines froma .csv file, where Fletcher_Margaret has 3 children, and Baker_Jill has 0 children (field 4 contains the string 'NA') Fletcher Margaret,Sydney,30-09-1921,Green Bob;Green Nancy;William Tom Baker_Jill, Melbourne,08-09-1973, NA Format for Printing If the person_name is found in the file, the format for printing the person information is as…Submission: Combine the code files for Q1 and Q2 as a zip file and submit in Moodle Question 1: Write a Program that to enter Student Name, Grade and print it to the screen with below requirements . . . . Asks the users how many student grades they want to enter. Based on that number the program should setup a loop to ask the user to enter student name and the student grade. Save this information using 2 arrays At the end the program must show the student names and grades with 1 student on each line on the screen Program should use Arrays and loops to achieve the task.
- String data type is not allowed you can make use of CString instead (char arrays with null termination). Q1. Create an Input File with the following information regarding to inventory: Item_Id Price Quantity Availability Add atleast 10 records in input file. Where item_id will be of type int , price will be of type double , quantity will be of type int and Availability will be of type char representing the status y for yes the product is available and n for not available. Write a menu driven C++ program to perform the following four tasks in a single file, if user press option 1 the task 1 get solved and so on: 1. Display the Item_Id of the products which are not available in stock on screen. 2. Copy all the available products data in a separate file. 3. Read the original input file and update the price of each item by 10 percent increase in the original price and save the complete information in separate file. 4. Try to save the information processed in part 3 in the original…Task: Loading data from files This exercise will require you to load some information from files and use it in your program. scene.txt contains a description of a series of shapes and colours to draw. You need to write code to read in the file data and draw the requested shapes in the correct colour. Each line in scene.txt will contain one of the following starting keywords followed by some data: COLOUR followed by 3 values: R, G, B CIRCLE followed by 3 values: X, Y, RADIUS RECT Followed by 4 values: X, Y, W, H LINE Followed by 4 values: X1, Y1, X2, Y2 CIRCLES are defined from the center. RECT's are defined from the top left. All values are space separated, and you can assume all input is correct (no errors). Please solve this program to draw the scene. I can't upload the file scene.txt, so I decide to screenshot a file for you. Subject: Java Programminganswer in python Design and write a program that calculates and displays the number of minutes over the monthly contract minutes that a cell phone user incurred. The program should allow users to enter into a file minutes allowed in a month, minute used during a month and minutes over during a month for 12 months. The program reads the data from the file. The program validates the data as follows: - The minimum minutes allowed should be at least 200, but not greater than 800. Validate data accordingly. - The minutes used must be over 0. Validate data accordingly. Once correct data is read, the program should calculate the number of minutes over the minute allowed. If minutes were not over, print a message that they were not over the limit. If minutes were over, for every minute over, a .20 fee should be added to the monthly contract rate of 74.99. Be sure not to add the .20 fee for minutes 1 to the number of minutes allowed, but rather just minutes over. Display in a file the number…
- The function fopen return NULL when: An error occurred while opening the file. An error occurred while reading the file. An error occurred while closing the file. An error occurred while compiling the file.Question 55 Write a function that takes two parameters, a file name to create and an integer. The function should write all the even numbers between 0 and the integer to the file name passed in. The numbers should be all on one line of the file For example: write_evens("even_file.txt",20) This should create a file called even_file.txt that contains 0 2 4 6 8 10 12 14 16 18 20 Full explain this question and text typing work only thanksPython Please! Create a program that will allow a user to do either of the following things: Get input from the user to write the following information to a file: Student name Assignment average grade Mid-term test grade Fi-nal project grade Fi-nal test grade Allow the user to search the file by student name and output a weighted average (15%, 25%, 25%, and 35%, respectively) based on the grades for that student in the file. The user should be able to choose either of the two options until they want to stop.