Question
For each of the following problems, use the top-down modular approach
and pseudocode to design a suitable program to solve it.
1. 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.
2. 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
and pseudocode to design a suitable program to solve it.
1. 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.
2. 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
Answers
Related Questions
When building a house, a structured, modular approach is better than a haphazard approach. Explain...
Can someone please explain to me how I can get the solution for this question. Use the top-down modu...
Develop a menu-driven program that inputs two numbers and, at the user’s
option, finds their sum, d...
need help how do this program.
Use the top-down modular approach and pseudocode to design a suitab...