cpts121-4-3 - between 0 and 100. (If a score is out of this...

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

View Full Document Right Arrow Icon
1 CptS 121 L4-3 – 9/18/09 Prof. Chris Hundhausen CptS 121 Fall ‘09 Lecture 4-3 HK Chapter 4: Selection Structures (cont.) Lecture Outline I. Finish up Payroll Application Example II. Another example: Student Grades
Background image of page 1

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

View Full DocumentRight Arrow Icon
2 CptS 121 L4-3 – 9/18/09 Prof. Chris Hundhausen Student Exam Scores Example Write a program that prompts the user for the name of an input and output file. Read from the input file five integer exam scores that lie
Background image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: between 0 and 100. (If a score is out of this range, then report an error and halt the program.) Convert each exam score to a letter grade using the standard grading scale (90-100 = A, 80-89 = B, etc.). Compute the maximum score and the average exam score. Output to the output file the exam scores read in, the converted letter grades, the maximum score, and the average score....
View Full Document

This note was uploaded on 01/25/2011 for the course CPTS 121 taught by Professor Hundhaus during the Spring '09 term at Washington State University .

Page1 / 2

cpts121-4-3 - between 0 and 100. (If a score is out of this...

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