answersLogoWhite

0


Best Answer

public class TestScores10{

11 public static void main (String [] args);

12

13 {

14 Scanner keyboard = new Scanner(System.in);

15

16 //Variables for Program

17

18 double TestScore1 = 0.0;

19 double TestScore2 = 0.0;

20 double TestScore3 = 0.0;

21 double TestScore4 = 0.0;

22 double TestScore5 = 0.0;

23 double averageScore;

24

25

26 //Prompts for user input

27

28 System.out.println("Please enter Test Score 1: ");

29

30 System.out.println("Please enter Test Score 2: ");

31

32 System.out.println("Please enter Test Score 3: ");

33

34 System.out.println("Please enter Test Score 4: ");

35

36 System.out.println("Please enter Test Score 5: ");

37

38 System.out.println("Your average is: ");

39 averageScore = (TestScore1 + TestScore2 + TestScore3

40 + TestScore4 + TestScore5 / 5);

41 }

42

43}

User Avatar

Wiki User

12y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you write a program that prompt the user to enter five test scores and then prints the average test score?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Given that Evelina's bowling scores were 133 155 176 and 132 find her average score The rule for calculating the average of a set of scores is Average Score equals Sum of Scores Number of Scores?

149


The mean of a distribution of scores is the?

The mean of a distribution of scores is the average.


How would you average an average?

You would add all the numbers or scores out and then divide by how many scores you added.


Adding all the scores and dividing that total by the number of scores?

Adding all the scores and dividing by the number of scores yields the mean or average.


Average gpa scores?

3.50


What is the average points per quarter that a NBA team scores?

24 is the average points per quarter that an MBA team scores.


How do you average scores if they are based on scores of 1 2 3 grade?

You have to add all of the three scores up. You will get a larger number than any of the three scores. You then divide your larger number by 3 and this will give you the average of the three scroes.


5 test scores average 80 percent and What does the 6th quiz score have to be to raise the average to 83 percent?

If 5 scores average 80, their sum is 400.If 6 scores average 83, their sum will be 498.The sixth score must be (498 - 400) = 98% .


What is the average sat scores?

SAT scores are used by universities to gauge the viability of potential applicants. For 2013, the average SAT score was a 1498.


How do you find a scoring average?

add all the scores up and divide that number by how many scores there were


What was the average sat scores in 1975?

1500


Can you write a program to read a set of scores from a file and compute the average and print it on the screenby c plus plus?

Yes. Use cin and/or getline to read the formatted data into an array, compute the average then output the result using cout.