subject
Computers and Technology, 09.03.2021 03:40 hehena

In this assignment we are going to practice reading from a file and writing the results of your program into a file. We are going to write a program to help Professor X automate the grade calculation for a course. Professor X has a data file that contains one line for each student in the course. The students name is the first thing on each line, followed by some tests scores. The number of scores might be different for each student. Here is an example of what a typical data file may look like: Joe 10 15 20 30 40 Bill 23 16 19 22 Sue 8 22 17 14 32 17 24 21 2 9 11 17 Grace 12 28 21 45 26 10 John 14 32 25 16 89 Program details Write a program that: Ask the user to enter the name of the data file. Read the data from the file and for each student calculate the total of the test scores, how many tests the student took, and the average of the test scores. Save the results in an output file (e. g. stats. txt) in the following order: studentName totalScore numberOfTests testAverage Note that the average is saved with 2 decimal places after the decimal point. Validation: Make sure your program does not crash if a file is not found or cannot be open.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 24.06.2019 20:30
Where is permanent data in the computer stored whenever gym starts his laptop he sees some commands in numbers appearing on the screen these instructions are being preceded by the control unit in
Answers: 1
question
Computers and Technology, 25.06.2019 08:20
With technology, information is sent to users based on their previous inquiries, interests, or specifications.
Answers: 2
question
Computers and Technology, 25.06.2019 09:50
The mips architecture has a register set that consists of 32-bit registers. is it possible to design a computer architecture without a register set? if so, briefly describe the architecture, including the instruction set. what are advantages and disadvantages of this architecture over the mips architecture?
Answers: 3
question
Computers and Technology, 25.06.2019 17:40
4) wilkes continues to discuss the concept of time and how it relates to the type of photography he does. why do you feel that the concept of time is of suck importance to him as a photographer? 5) unit 10 explores photographs with movement in them such as wildlife and documentary photography. wilkes takes the idea of movement in photography to a different level. do you feel the tips and information that you have learned in unit 10 is applicable to the type of photography that wilkes does? answer as soon as possible im so confused
Answers: 1
You know the right answer?
In this assignment we are going to practice reading from a file and writing the results of your prog...
Questions
question
Mathematics, 13.05.2021 06:30
question
Mathematics, 13.05.2021 06:30
Questions on the website: 13722361