Question: C++ Write a program that calculates and prints the total grade for n assignments as a percentage. Prompt the user to enter the value of

C++

Write a program that calculates and prints the total grade for n assignments as a percentage. Prompt the user to enter the value of n, followed by the number of points received and number of points possible for each assignment . Calculate and print the total number of points received, total number of points possible, and the overall percentage: (total points received / total points possible) * 100.

Output:

Enternumberofassignmentstoinput:3

Enternumberofpointsreceivedforassignment1 :10

Enternumberofpossiblepointsforassignment1 :10

Enternumberofpointsreceivedforassignment2 :7

Enternumberofpossiblepointsforassignment2 :12

Enternumberofpointsreceivedforassignment3 :5

Enternumberofpossiblepointsforassignment3 :8

ourtotalamountofpointsis22outof30,or73.33%.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!