Question: Prompt the user to enter their name. Create a method called calculateAvg. Method should pass the name as a parameter and use a cumulative sum

Prompt the user to enter their name.
Create a method called calculateAvg.
Method should pass the name as a parameter and use a cumulative sum loop to prompt the user to enter 5 scores and calculate the average (add all scores and divide by number of scores entered). Then, return that value to main to use. Once the average is returned, pass to the letter grade method.
Create another method called letterGrade. Method should pass parameters (student's name and calculated average grade). Check the score and print their letter grade based on their score. Using printf command print in quotation marks: name (all caps) and their average 10 character spaces wide, 1 decimal place, and right justified. Example: "JANE, had an average grade of 96.2 A"
Use if...else if...else structure to determine the letter grade. Grade Scale: 90.0-100.0-
A,80.0-89.0- B,70.0-79.0- C,60.0-69.0 D,0-59.0- F
Copy/paste your source code once complete.
I want this in java

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!