Problem

Visit www.myprogramminglab.com to complete select exercises online and get instant feedbac...

Visit www.myprogramminglab.com to complete select exercises online and get instant feedback.

Exercise

Write a program that calculates the total grade for N classroom exercises as a percentage. Use the DecimalFormat class to output the value as a percent. The user should input the value for N followed by each of the N scores and totals. Calculate the overall percentage (sum of the total points earned divided by the total points possible) and output it using the DecimalFormat class. Sample input and output is shown below.

How many exercises to input?3Score received for exercise 1:10Total points possible for exercise 1:10Score received for exercise 2:7Total points possible for exercise 2:12Score received for exercise 3:5Total points possible for exercise 3:8Your total is 22 out of 30, or 73.33%.

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 3