Home CPSC 220

Grade Calculator



To get more practice with using if statements, conditions, and blocks.


For this lab, you will write a program to calculate the letter grade for this class given the numeric grade. The ranges are listed on the syllabus as:

Input will be the number and output will be the letter grade that would earn.




Sample Run

Below is a sample run of the program. Values entered by the user are shown in bold face.

Please enter your grade: 87.5
Your grade is B+.



When your program works, email the code to ifinlay@umw.edu.

Copyright © 2022 Ian Finlayson | Licensed under a Attribution-NonCommercial 4.0 International License.