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 three classroom exercises as a percentage. Use the DecimalFormat class to output the value as a percent. The scores should be summarized in a table. Input the assignment information in this order: name of assignment (may include spaces), points earned (integer), and total points possible (integer). The percentage is the sum of the total points earned divided by the total points possible. Sample input and output is shown as follows:

Name of exercise 1:Group ProjectScore received for exercise 1:10Total points possible for exercise 1:10Name of exercise 2:HomeworkScore received for exercise 2:7Total points possible for exercise 2:12Name of exercise 3:PresentationScore received for exercise 3:5Total points possible for exercise 3:8

Exercise

Score

Total Possible

Group Project

10

10

Homework

7

12

Presentation

5

8

T otal

22

30

Your 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 2