Write a program called GPACalculator.java that reads n course grades from a user and prints the average of those grades. You should use a loop to read n numbers from the user. For example: If n=3, you should ask the user for 3 grades, then calculate the average of the 3 grades. If n=5, you should ask the suer for 5 grades, then calculate the average of the 5 grades.

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter8: Arrays
Section: Chapter Questions
Problem 8PE
icon
Related questions
Question
Write a program called GPACalculator.java that reads n course grades from a user and prints the average of those grades.
You should use a loop to read n numbers from the user. For example:
  • If n=3, you should ask the user for 3 grades, then calculate the average of the 3 grades.
  • If n=5, you should ask the suer for 5 grades, then calculate the average of the 5 grades.
 
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT