Right-Click on your buffalo.edu.fa23..your-username
Choose: File -> New -> class
In the Name: textbox type: InputOutput
Click: Finish
Copy the InputOutput.java Template (Java) code (below)
Paste that code into your new InputOutput class in the editor
Change both occurrences of put-your-username-here
Replace the blank on the Scanner
line with: Scanner(System.in)
After the // add a line here to output a message advising the user to enter 9999 to exit
comment line add: System.out.println( "Enter '9999' to exit" ); // informs user how to exit
Replace the blank after the if (num == 9999) {
line with: break;
Replace the blank on the if ()
line with: cnt > 0
Replace the blank on the ave =
line with: sum / (double) cnt;
Replace the blank after the } else {
line with: ave = 0;