College

**Project 14: Class Scores**

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 Run #1:**

```
Enter the number of exercises to input: 4
Enter the score received for Exercise 1: 18
Enter the total points possible for Exercise 1: 20
Enter the score received for Exercise 2: 15
Enter the total points possible for Exercise 2: 20
Enter the score received for Exercise 3: 17
Enter the total points possible for Exercise 3: 20
Enter the score received for Exercise 4: 10
Enter the total points possible for Exercise 4: 40
Your total is 60 out of 100, or 60%
```

Answer :

Final answer:

The overall percentage for N classroom exercises can be calculated by dividing the sum of the total points earned by the total points possible and multiplying it by 100. This gives the percentage of the total grade.

Explanation:

To calculate the overall percentage for N classroom exercises, follow these steps:

  1. Ask the user to input the value for N, which represents the number of exercises.
  2. Using a loop, ask the user to input the score received for each exercise and add it to a variable that keeps track of the total points earned.
  3. Ask the user to input the total points possible for each exercise and add it to a variable that keeps track of the total points possible.
  4. Calculate the overall percentage by dividing the total points earned by the total points possible and multiplying it by 100.
  5. Output the overall percentage as a percentage.

Learn more about calculating the total grade for n classroom exercises here:

https://brainly.com/question/18402609

#SPJ14