Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Starter program: Thank you :) To get started, open the (mostly) empty starter program, Lab5.java, in your Cloud Shell. Your job is to write a
Starter program:
Thank you :)
To get started, open the (mostly) empty starter program, Lab5.java, in your Cloud Shell. Your job is to write a simple program to ask the user for ten integer values. You will need to store these in an nt array. If you missed Lecture and are reading this, make sure to find the Lecture Slides from this week to understand what loops and arrays are and how we can use them to solve this problem. The program will then orint the maximum value, minimum value, and the average (mean) value of those ten ints. Remember, even hough the user is entering int values, the resulting arithmetic mean might be a double. Your program's output should look something like this: Qcloudshell: / code/lab4\$ java Lab4 Enter ten integer values: 48151623420123 The min value you entered is 3 The max value you entered is 42 The avg of the values you entered is 10.2 acloudshell: / code/lab4\$ import java.util. ; public class Lab5 \{ public static void main(String[] args) \{ Scanner kbd = new Scanner(System. in); // Ask the user for their input below. Make sure to print: // 1) The minimum value entered // 2) The Maximim value entered // 3) The Average (mean) of the values entered \}Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started