Question: Start Write a program that will initialize variables to zero, and give the user instructions. (ie. Enter a list of non-negative scores, entering the last

 Start Write a program that will initialize variables to zero, and

Start Write a program that will initialize variables to zero, and give the user instructions. (ie. Enter a list of non-negative scores, entering the last number as a negative. In order to compute the average) Request user input Then read in a number and the integer, and accumulate the value till you enter an negative value to break out of the statement. Then display either the (number of scores entered and the resulting average number) or (no scores entered). Then end the program. You can use System.in, System.out, or JOptionPane Read & Store into variables Count = 0 No scores entered Entered value >= 0 Print # of scores read in and also the average value Accumulate total, increment count, read & store input Stop

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!