Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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, thanks
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 hereStep 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