English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

Input names of students from the user, terminated by ZZZ, and create a data file GRADES with records of the form:
student (string), test1 (integer), test2 (integer), test3 (integer) In this file, all test scores should be set equal to 0.

Display the contents of the file GRADES created in Problem 1.
Each student’s record should appear on a separate line and include
the total score (the sum of the three tests) for that student. For
example, a line of output might be:
R. Abrams 76 84 82 242

2007-10-14 18:15:45 · 5 answers · asked by bob d 1 in Computers & Internet Programming & Design

If you dont want to help then dont I was just looking for a step in the right direction.

2007-10-14 20:47:30 · update #1

5 answers

Here is an algorithm

Read name
while (name not equal "ZZZ")
output name, 0, 0, 0 to data file
read name
end while

read name, test1, test2, test3
while not end of data file
sum = test1 + test2 + test3
output to screen: name test1 test2 test3 sum
read name, test1, test2, test3
end while

Hope this helps.

2007-10-15 00:07:02 · answer #1 · answered by Anonymous · 0 0

Is that a question? You're in the wrong place if you want others to do your homework for you. I'm all for helping people with their homework if they show some degree of effort that they've actually tried to do it themselves and need assistance.

2007-10-14 18:23:31 · answer #2 · answered by G 6 · 0 0

First off, what programming language?
Second, we won't do your homework for you, ask something smaller that will help you accomplish your homework, not for a complete solution.

2007-10-14 19:24:01 · answer #3 · answered by Christi C 1 · 0 0

go and search online on tutorials on C++ programming language. Read it learn it do it. Don't be a slacker u noob!

2007-10-14 19:22:33 · answer #4 · answered by got2b_chris 1 · 0 0

lLOOKS LIKE IT NEEDS TIME! WISH I HAD MORE TIME ON MY HANDS!

2007-10-14 18:24:41 · answer #5 · answered by swanjarvi 7 · 0 1

fedest.com, questions and answers