Chapter 5 programming problems Wk 7

Chapter 5 programming problems Wk 7 - While student<>...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Chapter 5 programming problems 1- Main Declare student as string Declare test 1, 2, 3 as integer Call input mod End program Input Open “grades” - output as new file Write “Enter students name and score” Write “Enter ZZZ for both” Input student, test 1 While student <> “0” Write “New file, student, test 1” Write “Enter ZZZ for both when done” Input student, test 2 While student <> “0” Write “New file, student, test 2” Write “Enter students name and score” Write “Enter ZZZ for both” Input “student test 3”
Background image of page 1

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

View Full DocumentRight Arrow Icon
Background image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: While student <> “0” Write “New file, student, test 3” Write “Enter students name and score” Write “Enter ZZZ for both” Input student score End while Close New File End Input Mod 2-Declare sum as real Sum = test1 + test2 + test3 Open “ Grades” for input as Gradefile While Not EOF (Gradefile) Read Gradefile, Name, test1, test2, test3 Write Name “”, test1 test2, test3, sum End While Close Gradefile Output C.Johnson 74 75 86 177 T.Crawsby 86 89 74 199...
View Full Document

This note was uploaded on 11/07/2011 for the course IT 240 242 taught by Professor Some during the Spring '10 term at University of Phoenix.

Page1 / 2

Chapter 5 programming problems Wk 7 - While student<>...

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

View Full Document Right Arrow Icon
Ask a homework question - tutors are online