Question: Java coding 1. a) Write a java program that gets N integers from the command line, finds the average of the numbers and counts how

 Java coding 1. a) Write a java program that gets N

Java coding 1. a) Write a java program that gets N integers from the command line, finds the average of the numbers and counts how many numbers are above the average. The program prints out the length of the array, the average and how many numbers are above the average. b) Write a java program that finds the smallest and the second smallest value in the N- item array. The program receives the integer from N on the command line, creates a random array in the range [-20.0, 20.0] and then finds the smallest and second smallest in the random array. The program should print these two items Please take a screenshot or write the full code

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!