a. Create a text file named parts.dat with the following data (without the headings): Part Number Initial Amount Quantity Sold Minimum Amount QA310 95 47 50 CM145 320 162 200 MS514 34 20 25 EN212 163 150 160
Q: Please help me get started. I don’t know where to start.
A: The formula for calculation of cost for the 20 miles,75 miles, and 500 miles. Given input is 20 mile...
Q: Create a Java program with a data class. The class will store data that has been read as user input ...
A: Change class UML class diagram : Where name ,coinchange are private variables Change() : default co...
Q: Performance is measured by the useful work completed or done by a system. Performance is related to ...
A: System Requirements are mainly two types.They are functional requirements and non functional requi...
Q: 6. a. Write a C++ program that opens a file and displays its contents with line numbers.That is, the...
A: Hey, since there are multiple questions posted, we will answer first question. If you want any speci...
Q: Which of the OSI layers handles each of the following: provides synchronization between the tasks E...
A: Seven layers of OSI network model: Physical layer Data link layer Network layer Transport layer Se...
Q: Assignment Instructions Using a Microsoft Windows system, open Internet Explorer. Click Internet Op...
A: Part a) Content filtering Content filtering in Internet Explorer (or IE) provides a security solutio...
Q: 1) Consider the following elements: <div id="d1"> <div id="d2">Title</div> <div...
A: 1. The CSS selector "#d1 > div" will select every <div> element where the parent is a "#d1"...
Q: six potential benfits of acheiving a widely accepted SQL standard
A: SQL: It stands for the structured query language. It allows users to manage, store, retrieve, modif...
Q: What input and output devices would you use for the following systems? For each, compare and contras...
A: (A) Air traffic control system - * In Air traffic control system we need rapid response or the em...
Q: Programme language used: C
A: Introduction of Program A stack is a linear data structure that follows a particular order in which ...
Q: C++ data structures Write functions fill and print. 1. function fill in 2 queue with random intgers ...
A: Objective: This program includes functions for filling random data elements into two queues and prin...
Q: Q2: Write a program in C++ to read ten students' name and degrees then calculate the average degree ...
A: The program has to be designed as follows: Create arrays for storing names of students. Create arra...
Q: Create a Java program with the following outline: Recommendation: Please enter at least 12 records...
A: Here, in this program, you need to take input from user. To take input from user, you need to use 'S...
Q: How is 'Technochange management: Using IT to drive organization change'?
A: Technochange (TC) defines a management technique for using IT to achieve organizational change by in...
Q: Write a template function that returns the average of all the elements of an array. The arguments to...
A: PROGRAM STRUCTURE: Include the required header files for using various functions. Include iostream...
Q: Determine whether each of these graphs is stryongly connected and if not, whether it is weakly conne...
A: Strongly Connected: A graph is said to be strongly connected if every pair of vertices(u, v) in the ...
Q: Suppose the RAM for a certain computer has 256M words, where each word is 16 bits long. a. What is t...
A:
Q: Reliability is measured as the amount of time the system is running and functioning properly. This i...
A: Functional and non-functional requirements: A functional requirement tells about the system, its be...
Q: what are some the pros and cons of using the following operating systems: a) Windows 10b) Chromec) M...
A: a) Windows 10 Pros The loading time of Windows 10 improved as compared to the previous Windows OS. ...
Q: Can anyone explain implication elimination to me please? After watching several youtube video i stil...
A: By definition, the implication or conditional statement, denoted by P -> Q, means that if the pro...
Q: Dear sir/madam, Please, I need to solve the problems using C++ programming language. Thank you. Babu...
A: "Since you have posted multiple questions,We will solve the first question for you.If you want any s...
Q: I dont understand what I did wrong but it is not computing out the correct percentage. How do I fix ...
A: Hey, thank you for your question. As per your question, we understand that your given code would pro...
Q: A bank’s customer records are to be stored in a file and read into a set of arrays sothat a customer...
A: Program: // including essential headers file #include<iostream> #include<fstream> #inc...
Q: by using c++ solve following questions 1. Write a program that inputs ten numbers from the user in a...
A: 1. Array: An array is a homogeneous kind of elements or numbers stored in contagious memory locatio...
Q: Draw the Crow's Foot ERD to reflect the dependency diagram.( Note: You might have to create addition...
A: Step 1:- Introduction:- Crow's foot notation is used to show the structure of the database and table...
Q: by using c++ solve following questions. 1. Write a program that inputs salary and grade, It adds ...
A: Here, you need to take input from user for salary and grade. So to store input values, you need to d...
Q: Write a program in C++ using C-style and array to allow the user to calculate the distance between c...
A: Create the class Point. Its data members are two points x and y. Create the constructor. Create a f...
Q: QUESTION 4 Given an instruction sequence with instructions in classes A, B, and C as the table below...
A: To solve this question, we need to know the formula of the execution time of CPU involving instructi...
Q: My anserwer has erro in line 1, how to fix? Add a column named Base_salary with a datatype of NUMBER...
A: ALTER COMMAND: The alter command for any database is used to perform any kind of modification in th...
Q: Create a class called Mather with a main method.Create an int width = 7. Create an int height = 6.Cr...
A: Below program will make use of 4 variables for strings for use of output. Area is driven multiplying...
Q: Compare between datagram and virtual circuit networks.
A: When sending a data from source to destination, two types of connection services are used. They ar...
Q: Write a C++ program that accepts lines of text from the keyboardand writes each line to a file named...
A: The program will read the input string from the user. It opens a file using outputFile.open ("text.d...
Q: Write the abstract and concrete RTN for the "shr" instruction.
A: Register Transfer Notation (RTN): Register Transfer Notation (or RTN) refers to a method of describi...
Q: Write a Console Java program without using package names, that asks the user to enter one sentence o...
A: Introduction of Program Java, object-oriented computer programming language. Java was created at Sun...
Q: : Create the following three row vectors: a = [ 5 8 -1 02], b = [ 4 1 9 -2 3], and c = [-3 5 0 6 1 ]...
A: Create row vectors a, b and c in MATLAB. To create 3 * 5 matrix using vectors c, b and a, write the ...
Q: Dear sir/madam I need to solve these two questions: 1. What is VPN authentication? How does VPN au...
A: 1. VPN authentication: The full form of VPN is “Virtual Private Network”. It offers two-factor auth...
Q: How do computers read code?
A: We write a program or code using any high level programming language for a particular task, the co...
Q: 1. Convert the following decimal number to binary: 297 _______________ 2. Perform the fo...
A: The decimal number system makes the use of digits 0-9 and takes number 10 as its base to represent n...
Q: 1. Write a program that converts the angle from degree to radian and displays each value. by using ...
A: "Since you have asked multiple question,we will solve the first question for you.If you want any spe...
Q: The full stereo computer vision problem consists of taking two images of a scene (a left-eye image a...
A: def lcs(X, Y, m, n): # if any of the list is empty then return 0 if m == 0 or n == 0: ...
Q: consider the udp header 05 31 00 0e 00 1a e3 11. what is the length of the data
A: The total length of the data from the given (05 31 00 0E 00 1A E3 11) UDP header is 18 bytes.
Q: answer please.
A: STEPS TO OPEN PIVOT TABLE : First, open Microsoft Excel. Click on the Insert Tab. In the insert ta...
Q: What is the peer-to-peer communication in the OSI Model?
A: Peer-to-Peer Communication: - The communication within layers is independent of other layers being u...
Q: What parameters should be sent to the range constructor to produce a rangewith values 11, 8, 5, 2, -...
A: The range constructor can take a parameter in two forms: 1. Syntax: range(stopValue) In this above s...
Q: ***Using C Program*** Create a program that prompts a user to enter a login name and password. The c...
A: In this program, you need to take user input for username and password. You can take user input by w...
9.
a. Create a text file named parts.dat with the following data (without the
headings):
Part Number Initial Amount Quantity Sold Minimum Amount
QA310 95 47 50
CM145 320 162 200
MS514 34 20 25
EN212 163 150 160
b. Write a C++ program to create an inventory report based on the data in the file created in
Exercise 9a. The display should consist of the part number, current balance, and the amount
needed to bring the inventory to the minimum level. The current balance is the initial
amount minus the quantity sold.
Step by step
Solved in 4 steps with 3 images
- 6. a. Write a C++ program that opens a file and displays its contents with line numbers.That is, the program should print the number 1 before displaying the first line, print thenumber 2 before displaying the second line, and so on for each line in the file.b. Modify the program written in Exercise 6a to list the file’s contents on the printer assignedto your computer.7. a. Create a text file named info.dat containing the following data (without theheadings):Name Social Security Number Hourly Rate Hours WorkedB Caldwell 555-88-2222 10.50 37D Memcheck 555-77-4444 12.80 40R Potter 555-77-6666 16.54 40W Rosen 555-99-8888 11.80 35b. Write a C++ program that reads the data file created in Exercise 7a and computes and displaysa payroll schedule. The output should list the Social Security number, name, and grosspay for each person, calculating gross pay as Hourly Rate × Hours Worked.Exercise 4: Write a python program that reads from a text file whose name is provided by the user, a list of a coffee shop products ordered by a customer (a sample input file is shown below). Each line contains item name, quantity and price (in biza) per product. Compute and display the total payment amount (in riyals) for each product as well as the total bill. Your program should consider the following erroneous cases: ● The file does not open/exist ● The format of the data in the file is incorrect (e.g. quantity = “!” or price “8&0”), in which case RuntimeError exception should be raised and the processing stops. Note: Make sure you close any open file even if an error occurs.Question B. Write a C++ program that reads the marks of a group of students from a text file "grades.txt" and computes the average of all grades. The program must check the file for any opening problems, and then proceeds to do the other tasks. The input file can have 1 or more students. The text file and sample-output are shown as below: O grades - Notepad File Edit Format View Help 60.0 78.6 78.0 98.6 77.7 55.0 73.0 80.7 80.0 85.0 Windows (CF Ln 13, Col 1 100% CAUsers\Imran\Desktop\Lab111\Debug\Lab111.exe Average of 10 students is 77 Press any key to continue... Activa Coto s
- Exercise 1:Write a Python program that reads from the user the name of two files (an input file and an outputfile). The program will then read each line of the input file and save it in the output file preceded with the line number and removing any of the following punctuations (. , ! ? ; :) found at the end of the line. For example, if the input file is: Mary had a little lamb;Whose fleece was white as snow;And everywhere that Mary went;The lamb was sure to go! Then the output file the content of the input file and saves it in the produced output file will be Line 1: Mary had a little lambLine 2: Whose fleece was white as snowLine 3: And everywhere that MaryLine 4: The lamb was sure to go7. a. Create a text file named info.dat containing the following data (without theheadings):Name Social Security Number Hourly Rate Hours WorkedB Caldwell 555-88-2222 10.50 37D Memcheck 555-77-4444 12.80 40R Potter 555-77-6666 16.54 40W Rosen 555-99-8888 11.80 35b. Write a C++ program that reads the data file created in Exercise 7a and computes and displaysa payroll schedule. The output should list the Social Security number, name, and grosspay for each person, calculating gross pay as Hourly Rate × Hours Worked.Write a C program named toupper.c that reads the contents of a file, and writes to another file after changing all lowercase letters in the input file to uppercase. The name of the input file and the output file are to be passed as command line arguments. Assume there are only ASCII characters in the input file. The length of the input file is not known beforehand. So make sure your program keeps reading bytes until EOF is reached. Use the library function toupper to concert letters into uppercase. Example: The program is run from the command line as follows; C:\>toupper.exe infile.txt outfile.txt Suppose the contents of the input file infile.txt is: AbcdefG The contents of the output file outfile.txt should be: ABCDEFG
- Write a C++program to read a series of product names, count, and price of each item in a file called cart.in to the end. Calculate the cost of each item and the total amount spent before taxes. Assuming the sales tax applied is 5.7%, display the total cost of each item and the total amount after taxes. Output the results to a file called receipts.out. The output must be in the form shown below. Attach the code and screenshot of a successful run on the program. ==== Your receipt Item Count Price/Item Item Total Pens 3 $ 2.99 $ 8.97 Notebook 5 $ 3.00 $15.00 Shoes 1 $ 25.19 $ 25.19 ===================== Subtotal $ 49.16 ===================== Total $ 51.96The course records are shown below: Each student has 4 assignments. 108194 9 10 10 10 197526 10 10 10 10 197008 10 10 0 10 197746 10 10 9 10 108154 10 0 10 9 Create an input file ‘CSassignments.txt’ using an editor such as Notepad++ with a student number, then a space, then four assignment marks on one line. The assignment marks are whole numbers and are separated by a space. Your C++ program will read from the file ‘CSassignments.txt’ and write to a second file ‘CSgrades.txt’ which includes the average of the student’s four assignments. e.g. 108194 9 10 10 10 9.75 Your C++ program should work with any number of records in the ‘CSassignments.txt’ input file – that is – test your program with TWO records…Please help me with this code. The code needs to consists of one header file and two c files . Must use the command line to run the program. Below is the input.txt file that needs to be used. Please provide output and the source code for each file in the program. A1, A2 20294 Lorenzana Dr Woodland Hills, CA 91364 B1, B2 19831 Henshaw St Culver City, CA 94023 C1, C2 5142 Dumont Pl Azusa, CA 91112 D1, D2 20636 De Forest St Woodland Hills, CA 91364 A1, A2 20294 Lorenzana Dr Woodland Hills, CA 91364 E1, E2 4851 Poe Ave Woodland Hills, CA 91364 F1, F2 20225 Lorenzana Dr Los Angeles, CA 91111 G1, G2 20253 Lorenzana Dr Los Angeles, CA 90005 H1, H2 5241 Del Moreno Dr Los Angeles, CA 91110 I1, I2 5332 Felice Pl Stevenson Ranch, CA 94135 J1, J2 5135 Quakertown Ave Thousand Oaks, CA 91362 K1, K2 720 Eucalyptus Ave 105 Inglewood, CA 89030 L1, L2 5021 Dumont Pl Woodland Hills, CA 91364 M1, M2 4819 Quedo Pl Westlake Village, CA 91362 I1, I2 5332 Felice Pl Stevenson Ranch, CA 94135 I1, I2 5332…
- Write a function count_character(filename, character) that takes in a filename and a character, both as strings, and returns the total number of times the given character occurs in the file. Examples: Contents of hello.txt:HelloHELLOHelloHELLO count_character('hello.txt', 'L') returns 4count_character('hello.txt', 'H') returns 4count_character('hello.txt', 'e') returns 2 Requirements: Please use Python Programming only Show screenshot of your work.Write a function void saveByDept(char *fileName, char *deptName , student allStudents[], int size) that will save the information of all students who belong to the department with name pointed to by deptNameinto a text file. The name of the file is given as an input parameter, fileNameUsing Programming C++..... a) Write a program that reads a text file in which each line in the file consists of a first name, a last name, following by 4 grades (double types) like Tim Hanes 78.3 98.0 80.5 72.3 The program must read every line of the text file, find the average of the 4 grades then print the names followed by the averages (one name per line) in a second file as well as on the monitor. b) Create the text file with at least 5 entries with the format given in part (a). Give the absolute path of the file in your computer. Test your program in part 2(a) on this file.