Question
Hello, I need help on this part of my lab. If possible, please keep it beginner friendly! I struggle a lot in this subject...Thanks! For
Hello, I need help on this part of my lab. If possible, please keep it beginner friendly! I struggle a lot in this subject...Thanks!
For each lab version, you MUST have a runner class called Runner and a class called ArrayLab. The method signatures shown below represent methods in the ArrayLab class.
70 Point Lab
Ask the user how many numbers will be read in from the keyboard.
Use a loop and a Scanner class method to read int values from the keyboard and then put these values into an array.
Use the how many numbers value to end the loop.
If 3, 2, 5 and 5 were the numbers entered in that order, your code would print the following:
The numbers entered were: [3, 2, 5, 5]
note: the Arrays class has a method that will format the list this way for you.
The minimum number in the list is 2.
public static int minInList(int[] list) must be used and located in the ArrayLab class.
The maximum number in the list is 5.
public static int maxInList(int[] list) must be used and located in the ArrayLab class.
The average of the values in the list is 3.75.
public static double avgOfList(int[] list) must be used and located in the ArrayLab class
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