Problem

Write a method called printGPA that accepts a Scanner for the console as a parameter and c...

Write a method called printGPA that accepts a Scanner for the console as a parameter and calculates a student’s grade point average. The user will type a line of input containing the student’s name, then a number that represents the number of scores, followed by that many integer scores. Here are two example dialogues:

Enter a student record: Maria 5 72918489 78

Maria' s grade is 82.8

Enter a student record: Jordan 4 86716290

Jordan's grade is 77.25

Maria’s grade is 82.8 because her average of (72 + 91 + 84 + 89 + 78) / 5 equals 82.8.

Step-by-Step Solution

Request Professional Solution

Request Solution!

We need at least 10 more requests to produce the solution.

0 / 10 have requested this problem solution

The more requests, the faster the answer.

Request! (Login Required)


All students who have requested the solution will be notified once they are available.
Add your Solution
Textbook Solutions and Answers Search
Solutions For Problems in Chapter 4
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT