|
First Summer 2008 |
Write a program (call it grade.py)
For example,
Break ties in favor of the better grade; for example 2.85 should be a | |
Here's a sample run of such a program:
Enter numeric score then press Enter : 3.85 A Enter numeric score then press Enter : 3.84 A- Enter numeric score then press Enter : 3.5 A- Enter numeric score then press Enter : 3.49 B+ Enter numeric score then press Enter : 3.1 B Enter numeric score then press Enter : 10 Number out of range: number too big. Enter numeric score then press Enter : -2 Number out of range: number too small. Enter numeric score then press Enter : -0.5 Number out of range: number too small. | |
Write a program that
State your assumptions in the code when you send it (more about this in class).