Home CPSC 220

Grade Calculator

 

Objective

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

Task

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.


 

Details


 

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+.

 

Submitting

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

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