Calculate the overall percentage sum of the total points


Write a program that calculates the total grade for N classroom exercises as a percentage. 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 as a percentage. Sample input and output is shown below.

How many exercises to input? 3

Score received for exercise 1: 10Total points possible for exercise 1: 10 Score received for exercise 2: 7Total points possible for exercise 2: 12 Score received for exercise 3: 5Total points possible for exercise 3: 8 Your total is 22 out of 30, or 73.33%

  • See the end of chapter 2, programming project 7

Solution Preview :

Prepared by a verified Expert
Basic Computer Science: Calculate the overall percentage sum of the total points
Reference No:- TGS01415452

Now Priced at $10 (50% Discount)

Recommended (90%)

Rated (4.3/5)