IT210Week7Checkpoint_Chapter5_Programming_Problems

# IT210Week7Checkpoint_Chapter5_Programming_Problems - 1...

This preview shows pages 1–4. Sign up to view the full content.

1 CheckPoint: Chapter 5 Programming Problems David Sauerbrei IT/210 Leon Stevens Axia College of University of Phoenix

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
2 Analysis Process: 1. Open “GRADES” file 2. Display StudentName 3. Display Test scores 4. Add test scores 5. Display Sum Input: StudentName as string Test1 as integer Test2 as integer Test3 as integer Sum as integer Output: Sum of all test scores Problem 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. Main Module Declare StudentName as string Declare test1, test2, test3 as integers Open GRADES
3 Call Write Grades Module Close GRADES End Main Module Write Grades Module Declare StudentName as string Declare Test1 as integer Declare Test2 as integer Declare Test3 as integer Open “GRADES” For Output As TestScores Set Test1, Test2, Test3 = 0 Write “Enter student’s name and test scores separated by a comma.” Write “Enter ZZZ for student’s name when finished.”

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

### Page1 / 4

IT210Week7Checkpoint_Chapter5_Programming_Problems - 1...

This preview shows document pages 1 - 4. Sign up to view the full document.

View Full Document
Ask a homework question - tutors are online