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...

1 answer below »
file attatched


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) b) Prompt the user to enter new data for the current 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 Version 2: ​August, 2018 TEQSA Provider Number: PRV12051​ ​ABN 49 003 577 302 CRICOS Code: 00161E RTO Code: 90458 ​ ​Kent Institute Australia Pty. Ltd. Assessment Brief Version 2: ​August, 2018 TEQSA Provider Number: PRV12051​ ​ABN 49 003 577 302 CRICOS Code: 00161E RTO Code: 90458 ​ ​Kent Institute Australia Pty. Ltd. Assessment Brief Version 2: ​August, 2018 TEQSA Provider Number: PRV12051​ ​ABN 49 003 577 302 CRICOS Code: 00161E RTO Code: 90458
Answered Same DayAug 27, 2020

Answer To: ASSESSMENT DESCRIPTION: The South Pacific Hotel is planning to build a new resort in the mountains....

Sonu answered on Sep 03 2020
148 Votes
SNowfall_Java/Screenshot_1.JPG
SNowfall_Java/Screenshot_2.JPG
SNowfall_Java/SiteData.java
SNowfall_Java/SiteData.java
package com.analysis.data;
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;
public class SiteData {
    List> dataList = new ArrayList>();

    // add default value using constructor
    SiteData(){
        List data1 = new ArrayList();
        data1.add(42.7);
        data1.add(50.8);
        data1.add(42.7);
        data1.add(48.3);
        dataList.add(data1);
        List data2 = new ArrayList();
        data2.add(45.8);
        data2.add(52.4);
        data2.add(40.7);
        data2.add(43.8);
        dataList.add(data2);
        List data3 = new ArrayList();
        data3.add(44.9);
        data3.add(49.6);
        data3.add(42.0);
        data3.add(46.7);
        dataList.add(data3);
        List data4 = new ArrayList();
        data4.add(40.3);
        data4.add(54.7);
        data4.add(57.0);
        data4.add(48.3);
        dataList.add(data4);
        List data5 = new ArrayList();
        data5.add(52.0);
        data5.add(50.0);
        data5.add(52.5);
        data5.add(54.7);
        dataList.add(data5);
    }



    public void displayData(){
        double [][]flag = new double[4][dataList.size()];

        for(int row=0; row
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here