ASSESSMENT DESCRIPTION:
The South Pacific Hotel is planning to build a new resort in the mountains. They have 4 proposed sites under observation. Management’s concern is average snowfall at the 4 sites. The collected data for the last five years is as follows (in inches):
Year
1 2 3 4 5
42.7
45.8
44.9
40.3
52.0
50.8
52.4
49.6
54.7
50.0
48.3
40.7
42.0
57.0
52.5
51.3
43.8
46.7
48.3
54.7
1
Site 2
3
4
Write a Java program that will use the above values and other similar data then generate some statistics, thus:
a) Get the above data (4 sites, 5 years)
) Prompt the user to enter new data for the cu
ent year (4 sites, year 6)
c) Calculate and display the average snowfall for each year.
d) Calculate and display the average snowfall for each site.
For a) above you have some options, you can:
1) hard code the data in java
2) read it from a file
3) enter it every time you run and test your program (hint… option 3 is not a good idea)
​ ​Kent Institute Australia Pty. Ltd.
Assessment Brief XXXXXXXXXXVersion 2: ​August, 2018 XXXXXXXXXXTEQSA Provider Number: PRV12051​ ​ABN XXXXXXXXXXCRICOS Code: 00161E RTO Code: 90458
​ ​Kent Institute Australia Pty. Ltd.
Assessment Brief XXXXXXXXXXVersion 2: ​August, 2018 XXXXXXXXXXTEQSA Provider Number: PRV12051​ ​ABN XXXXXXXXXXCRICOS Code: 00161E RTO Code: 90458
​ ​Kent Institute Australia Pty. Ltd.
Assessment Brief XXXXXXXXXXVersion 2: ​August, 2018 XXXXXXXXXXTEQSA Provider Number: PRV12051​ ​ABN XXXXXXXXXXCRICOS Code: 00161E RTO Code: 90458