CSCI-1320 Homework 05: Lots of Grades

Instructor: Todd Dole

Purpose Statement

This assignment will involve refarctoring a previous assignment to use loops.

Instructions

Create a new version of your LetterGrade.java file from homework 4. Call this one ManyGrades.java

Modify the program so that it first prompts the user for a number of assignments, and then uses a while loop to prompt the user for the grade on each assignment.

Once the input is complete, the program should calculate an average grade (all grades weighted equally) and display the letter grade as before.

Example Output:

		How many grades do you have? 3
		Please enter grade 1: 80.0
		Please enter grade 2: 60.0
		Please enter grade 3: 100.0

		Your average is: 80.0
		Your grade is a B!
            

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

Before you begin:Write out the steps that you will follow. Include your plan in comments at the start of your file.