Question: Tutorial 2 ( Arrays ) Write a Java program that performs the following tasks: a . Create an array of type double of size 1
Tutorial Arrays
Write a Java program that performs the following tasks:
a Create an array of type double of size To represent students marks in Test
b Prompt the user to enter 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 arrays of integers, array and array The method should return true if the 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.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
