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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started