Question: 1. Write a program using BlueJ and Java to compute the average of three numbers, we will assume these numbers are test scores, so the

 1. Write a program using BlueJ and Java to compute the

1. Write a program using BlueJ and Java to compute the average of three numbers, we will assume these numbers are test scores, so the range the numbers can be are 0-100. 2. Ask the user to enter input data. 3. If a user enters a number that is less than 0 or more than 100, display output "error, try again", then let them retry that attempt. The program should not crash if the number is 0 or 100. The program should not move forward until the user enters a valid input. 4. The average is calculated by adding the three numbers and dividing the sum by three. 5. Your output should look similar to this, Sample Run: I Enter subject_1 marks: 86.5 Enter subject_2 marks: 102|| error, try again Enter subject_2 marks: -12 crror, try again Enter subject_2 marks: 100 Enter subject_3 marks: 89 Average of three numbers: 91.833

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!