Question: Tutorial 2 ( Arrays ) Write a Java program that performs the following tasks: a . Create an array of type double of size 1

Tutorial 2(Arrays)
Write a Java program that performs the following tasks:
a. Create an array of type double of size 15. To represent students marks in Test1.
b. Prompt the user to enter 15 marks and save them in the array.
c. Calculate and output the average of all marks.
d. Output the marks that are above the average.
e. Output the count of marks above and the count of marks below the average.
Write a java method equals that takes as parameters 2 arrays of integers, array1 and array 2. The method should return true if the 2 arrays are of the same size and have elements of the same values and false otherwise.
Write main method to call and test equals method.
 Tutorial 2(Arrays) Write a Java program that performs the following tasks:

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!