Question
Asked by:
temple
temple from UOP
Rating (1): A-
Questions Asked: 7
Tutorials Posted: 6, earned $16.36
 

$10.00 Programming Problems

Q:
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
 
 
Available Tutorials to this Question
Posted by:
b_h
b_h from U. in B.
Rating (488): A+
Questions Asked: 0
Tutorials Posted: 912, earned $16,378.27
 

$10.00 Top/Down Analysis and Pseudocode for Reading/Write GRADES File

  • This tutorial was purchased 3 times and rated A+ by students like you.
  • Posted on Jun 24, 2008 at 6:34:08PM
A:
Preview: ... the given Student Name and 0,0,0 as the test scores. The Write Record to File routine takes as input a reference to a file, a Student Name and three test scores. It then writes a string to the file formatted as specified.

Again, if the student name isn't ZZZ, then the program repeats prompting the user for input.


In this way we have created a top down analysis of the program by specifiying the high level details and then iteratively describing the lower level subsystems that it depends upon down until the OS level functions.



Program 2:
The second program is similar in that it uses the Open File, Close ...

The full tutorial is about 560 words long plus attachments.

Attachments:
P1.txt (1K) (Preview)
P2.txt (1K) (Preview)
Posted by:
Aks21
Aks21 from Business School
Rating (250): B-
Questions Asked: 5
Tutorials Posted: 706, earned $10,963.48
 

$5.00 Pseudo Code is here for both parts

  • This tutorial was purchased 5 times and rated A+ by students like you.
  • Posted on Jun 25, 2008 at 09:53:07PM
A:
Preview: ... des
Open “Grades” For Output as NewFile
Write “Enter the student and three test scores separated by commas please.”
Write “Enter “ZZZ” when done
Input Student, Test1, Test2, Test3

While Student <> “ZZZ”
Set T ...

The full tutorial is about 122 words long .
   
Join Now or Log In
Get Tutoring
Get Paid
Academic Honesty