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 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 students 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 character spaces wide, decimal place, and right justified. Example: "JANE, had an average grade of A
Use ifelse ifelse structure to determine the letter grade. Grade Scale:
A B C D F
Copypaste 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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
