Question: JAVA , please read inside the brackets, thanks Assume that the Scanner class has been imported. Do not write any import statements. Write a class

JAVA , please read inside the brackets, thanksJAVA , please read inside the brackets, thanks Assume that the Scanner

Assume that the Scanner class has been imported. Do not write any import statements. Write a class with default scope called NumberAnalyser that contains a public method called findAverage (You do not need to write the driver for testing the class this has already been written) (Do not make your class public) The method findAverage should: 1.) Return a double value 2.) Declare and create a scanner object to read data from the standard input. 3.) Prompt the user ten times with the following message and read a number each time: Please enter a number (double):" 4.) After each prompt add the value to the current total. 5.) Compute the average of all the numbers entered. 6.) At the end of the method return the average of all the numbers SUBMIT of 1: Wed Aug 22 2018 16:52:45 GMT+1000 (Australian Eastern Standard Time 1 Type your solution here

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!