Write a complete java program called lcalculatelluwerage


Write a complete Java program called CalculateAverage according to the following guidelines. The program prompts the user for ?ve to ten numbers oil on one iine, separated by spaces. calculates the average of those numbers. and displays the numbers and their average to the user.

The program uses methods to:

1. get the numbers entered by the user;

2. calculate the average of the numbers entered by the user; and

3. print the results. The ?rst method should take no arguments and return a String of numbers separated by spaces.

The second method should take a String as its only argument and return a double [the average].

The third method should take a String and a double as arguments but have no return value.

Solution Preview :

Prepared by a verified Expert
JAVA Programming: Write a complete java program called lcalculatelluwerage
Reference No:- TGS02383514

Now Priced at $15 (50% Discount)

Recommended (92%)

Rated (4.4/5)