In this lab, you complete a partially prewritten Java program that uses an array. The program prompts the user to interactively enter eight batting averages, which the program stores in an array. The program should then find the minimum and maximum batting average stored in the array as well as the average of the eight batting averages. The data file provided for this lab includes the input statement and some variable declarations. Comments are included in the file to help you write the remainder of the program. Instructions 1.Ensure the file named BattingAverage.java is open. Write the Java statements as indicated by the comments. Execute the program by clicking "Run Code." Enter the following batting averages: .299, .157, .242, .203, .198, .333, .270, .190. The minimum batting average should be .157, and the maximum batting average should be .333. The average should be .2365.
In this lab, you complete a partially prewritten Java program that uses an array.
The program prompts the user to interactively enter eight batting averages, which the program stores in an array. The program should then find the minimum and maximum batting average stored in the array as well as the average of the eight batting averages. The data file provided for this lab includes the input statement and some variable declarations. Comments are included in the file to help you write the remainder of the program.
Instructions
1.Ensure the file named BattingAverage.java is open.
-
Write the Java statements as indicated by the comments.
-
Execute the program by clicking "Run Code." Enter the following batting averages: .299, .157, .242, .203, .198, .333, .270, .190. The minimum batting average should be .157, and the maximum batting average should be .333. The average should be .2365.
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 1 images
I've been doing that same code, and nothing is being rubbed with that code. It doesn't help me to figure out where those numbers to type with the words averages are supposed to be at in this you keep giving me the same thing, over again that still doesn't answer my qu
That still doesn't help me. Type exactly where you put all the Battle averages and all that stuff in the coding space please.
It still doesn't make sense, can't you type where exactly I type numbers and the averages in the partial written code? It would help me better this way.
How and where do I exactly write the Java statements as indicated by the comments? It doesn't make sense to me.