Question: Need help correcting code it does not work this is the error output import java.util.Scanner; public class TestScoreStatistics { public static void main(String[] args) {
Need help correcting code it does not work this is the error output
import java.util.Scanner;
public class TestScoreStatistics { public static void main(String[] args) { int max=0,min=999; double avg=0; int count=0; int sum=0; int num; Scanner scan=new Scanner(System.in); System.out.println("Please input test scores with values between 0-100. Enter 999 to finish."); num=scan.nextInt(); int temp=num;
do { if(num==999) System.exit(0); if(num>=0 && nummax )
max=num; if(num

![output import java.util.Scanner; public class TestScoreStatistics { public static void main(String[] args)](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66f3bc4b4a8bf_48266f3bc4aab41d.jpg)
Students This content is controlled by your instructor, and is not zyBooks content. Direct questions or concerns about this content to your instructor. If you have any technical issues with the zyLab submission system, use the "Trouble with lab?" button at the bottom of the lab Introduction For this lab, you will be using the do-while loop. The structure for this type of loop is variable declarations do statements with change to stop condition variables while stop condition* The main difference to note with this type of loop is that it's contents will always execute at least once because it checks the stop condition after the first iteration of the loop. This is in contrast with a for and while loop whose contents may never be executed based on the stop condition. Task You will write an application called TestScoreStatistics.java. This program will: Display the usage message "Please input test scores with values between 0-100. Enter 999 to finish Accept test scores within the range 0-100. If the number is out of range display the meseage thwatid Test seeres, disregard that input and continue collecting values Stop collecting test scores when the user inputs the number 999 Once all values have been entered, display the number of scores entered, the lowest score, the highest score, and the average. Sample output for input: 57 -2 98 13 85 77 999 Please input test scores with values between 0-100. Enter 999 to finish Test Statistics: Number of Tests 5 Lowest 13 Highest 98 Average 66
Step by Step Solution
There are 3 Steps involved in it
There are no images attached to your message Based on your provided question I will answer it direct... View full answer
Get step-by-step solutions from verified subject matter experts
