Friday
July 25, 2014

Homework Help: computer science

Posted by Abby on Thursday, February 23, 2012 at 5:33am.

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.

Answer this Question

First Name:
School Subject:
Answer:

Related Questions

programming logic - The program will accept user input to store the student's ...
computer science - Write an Assembly program to determine the price of a car ...
Computer Science - I need help with these assignments. "Write a program to read ...
computer science - write a program that calculates a customer's monthly bill. it...
computer sicence C++ - Americans spell differently from Canadians. Americans ...
Programming - I need your help to write a program using visual basic 2010 for ...
computer science - write a program that prompts the user to input three numbers...
computer science - Write a program that prompts the user to input three numbers...
Computer Science - write a program that will prompt the user for a value and ...
c++ - Write a program that asks the user to input a grade that he or she ...

Search
Members