CS35: Assignment 6

CS35: Programming and Problem Solving
Ray Ontko
Department of Computer Science
Earlham College

Due Wednesday, 1999/09/08

Reading Assignment

Read section 2.6 of Deitel and Deitel.

Programming Exercise

Write a program which prompts the user for a numerical grade and then displays the corresponding letter grade based on the numerical ranges established for this course. The numerical range for each letter grade is given in Syllabus: Grading.

When you run your program, the dialogue should look something like this:

$ ./letter_grade
letter_grade -- computes a letter grade from a numeric grade for CS35

Enter a numeric grade.
93

Your grade is: A- 
$

You should decide how your program should behave if the grade entered is less than 0 or more than 100.

Copyright © 1999, Ray Ontko (rayo@ontko.com).