CSCI-1320 Homework 04: Letter Grades

Instructor: Todd Dole

Purpose Statement

This program will begin to give you experience with IF statements.

Instructions

Save a new version of GradeCalulator.java as LetterGrade.java (and change your class name).

You will modify your program so that in addition to displaying the final grade percentage, it displays a letter grade:

You will need to use a series of if statements to display the correct message. Hint: you will need to use either && or an if - else if structure.

Example Output:

                 Enter Homework  : 80.4
                 Enter Exam 1    : 74.5
                 Enter Exam 2    : 88.7
                 Enter Final     : 91

                 Final Grade is: 83.00
                 Your grade is a B!

Upload your solution (your LetterGrade.java source code file) to the assignment in Canvas.