computer science

posted by .

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 input (in bold) and output (in italics) is shown below.

How many exercises to input? 3

Score received for exercise 1:  10
Total points possible for exercise 1:  10

Score received for exercise 2:  7
Total points possible for exercise 2:  12

Score received for exercise 3:  5
Total points possible for exercise 3:  8

Your total is 22 out of 30, or 73.33%.

Input Details: The input will consist of an initial integer (let's refer to it as N) followed by N pairs of integers, all responses to program prompts.

Output Details: The program uses the prompts and labels shown in the example above.

Respond to this Question

First Name
School Subject
Your Answer

Similar Questions

  1. Statistics

    Assume that a set of test scores is normally distributed with a mean of 100 and a standard deviation of 20. Use the 68-95-99.7 rule to find the following quantities: Suggest you make a drawing and label first… a. Percentage of scores …
  2. auguta tech

    Assume that a set of test scores is normally distributed with a mean of 100 and a standard deviation of 20. Use the 68-95-99.7 rule to find the following quantities: a. Percentage of scores less than 100=50 percent b. Relative frequency …
  3. statistics

    Assume that a set of test scores is normally distrbuted with a mean of 100 and a standard deviation of 20. Use the 68-95-99.7 rule to find the following quantities: Suggest you make a drawing and label first.... a. Percentage of scores …
  4. statistics

    Using the 68-95-99.7rule. Assume that a set of test scores is normally distributed with a mean of 100 and a standard deviation of 20. Use the 68-95-99.7 rule to find the following quantities: a. percentage of scores less than 100 b. …
  5. statistics

    Assume that a set of test scores is normally distributed with a mean of 100 and a standard deviation of 20. Use the 68-95-99.7 rule to find the following quantities: Suggest you make a drawing and label first… a.Percentage of scores …
  6. statistics

    Assume that a set of test scores is normally distributed with a mean of 100 and a standard deviation of 20. Use the 68-95-99.7 rule to find the following quantities: Suggest you make a drawing and label first… a. Percentage of scores …
  7. statistics

    Assume that a set of test scores is normally distributed with a mean of 100 and a standard deviation of 20. Use the 68-95-99.7 rule to find the following quantities: Suggest you make a drawing and label first… a. Percentage of scores …
  8. Math-statistics

    Assume that a set of test scores is normally distributed with a mean of 100 and a standard deviation of 20. Use the 68-95-99.7 rule to find the following quantiles: a.percentage of scores less than 100 b. relative frequency of scores …
  9. Computer science

    need help how do this program. Use the top-down modular approach and pseudocode to design a suitable program to solve it. Alberta Einstein teaches a business class at Podunk University. To evaluate the students in this class, she has …
  10. computer science

    Write a java program that reads from the user the course code, section and the scores of a student for three exams representing two midterms and a final. The percentage of each of the three exams is of fixed value 30, 30 and 40 percent …

More Similar Questions