The Fiji Metrological Services has entrusted you with the task of creating their Weather Monitoring Application. The application will be used to read weather data from different weather stations and...

The Fiji Metrological Services has entrusted you with the task of creating their Weather Monitoring Application. The application will be used to read weather data from different weather stations and generate analyze them. Input File: The input file called data.txt contains a list of records of weather readings from different weather stations across Fiji. The file is generated automatically by the various sensors at those sensors and passed onto the Application Analyst for analysis. Each record is on a single line and the fields are separated by tabs (‘\t’). The names of the fields are: ? Station ID ? Station Name ? Date/Time ? Temperature ? Rainfall An example record may have the following form: S001 NadiMet 02/05/19:0600 27.0 20.35 1.2 Program Specifications: 1. You must read this file and store the records of weather data into appropriate lists. 2. Your program should then be able to process the following commands. i.e. Program should provide user with the following menu. i. Print all data. ii. Print all data about weather stations which match a given Station ID which is entered by a user iii. Calculate the average temperature and rainfall across all the weather stations. iv. Determine the maximum and minimum temperature and rainfall across all the weather stations. v. Write results to file vi. Exit program. 3. Repeat steps 2 until the user enters “Q”. After each command is processed in step 2, (except menu vi) program must display the menu options again


S001NadiMet02/03/18:10023.2666666728 S001NadiMet02/03/18:20022.9333333325 S001NadiMet02/03/18:30022.635 S001NadiMet02/03/18:40022.2666666748 S001NadiMet02/03/18:50022.0666666735 S001NadiMet02/03/18:60021.824 S001NadiMet02/03/18:70021.6666666740 S001NadiMet02/03/18:80021.5333333333 S001NadiMet02/03/18:90021.437 S010SuvaMet02/03/18:100022.5333333340 S010SuvaMet02/03/18:110024.2666666746 S010SuvaMet02/03/18:120026.2666666741 S010SuvaMet2/5/19:060028.0666666740 S010SuvaMet2/5/19:070029.4666666724 S010SuvaMet2/5/19:080030.437 S010SuvaMet2/5/19:090030.835 S010SuvaMet2/5/19:100030.5333333330 S010SuvaMet2/5/19:110029.429 S019LabasaMet02/03/18:10027.4666666736 S019LabasaMet02/03/18:20026.421 S019LabasaMet02/03/18:30025.4666666725 S019LabasaMet02/03/18:40024.850 S019LabasaMet02/03/18:50024.222 S019LabasaMet02/03/18:60023.6666666723 S019LabasaMet02/03/18:70023.2666666734 S019LabasaMet02/03/18:80022.9333333324 S019LabasaMet02/03/18:90022.621 S019LabasaMet02/03/18:100022.3333333326 S001NadiMet02/03/18:110022.0666666728 S001NadiMet02/03/18:120021.848 S001NadiMet02/04/18:10021.6666666746 S001NadiMet02/04/18:20021.5333333327 S001NadiMet02/04/18:30021.432 S001NadiMet02/04/18:40022.5333333330 S001NadiMet02/04/18:50024.444 S001NadiMet02/04/18:60026.447 S001NadiMet02/04/18:70028.2666666745 S010SuvaMet02/04/18:80029.6666666745 S010SuvaMet02/04/18:90030.6666666729 S010SuvaMet02/04/18:10003124 S010SuvaMet02/04/18:110030.7333333347 S010SuvaMet02/04/18:120029.650 S010SuvaMet02/05/18:10027.6666666744 S010SuvaMet02/05/18:20026.5333333321 S010SuvaMet02/05/18:30025.6666666739 S010SuvaMet02/05/18:40024.9333333350 S019LabasaMet02/05/18:50024.3333333336 S019LabasaMet02/05/18:60023.8666666739 S019LabasaMet02/05/18:70023.430 S001NadiMet02/03/18:10023.2666666728 S001NadiMet02/03/18:20022.9333333325 S001NadiMet02/03/18:30022.635 S001NadiMet02/03/18:40022.2666666748 S001NadiMet02/03/18:50022.0666666735 S001NadiMet02/03/18:60021.824 S001NadiMet02/03/18:70021.6666666740 S001NadiMet02/03/18:80021.5333333333 S001NadiMet02/03/18:90021.437 S010SuvaMet02/03/18:100022.5333333340 S010SuvaMet02/03/18:110024.2666666746 S010SuvaMet02/03/18:120026.2666666741 S010SuvaMet2/5/19:060028.0666666740 S010SuvaMet2/5/19:070029.4666666724 S010SuvaMet2/5/19:080030.437 S010SuvaMet2/5/19:090030.835 S010SuvaMet2/5/19:100030.5333333330 S010SuvaMet2/5/19:110029.429 S019LabasaMet02/03/18:10027.4666666736 S019LabasaMet02/03/18:20026.421 S019LabasaMet02/03/18:30025.4666666725 S019LabasaMet02/03/18:40024.850 S019LabasaMet02/03/18:50024.222 S019LabasaMet02/03/18:60023.6666666723 S019LabasaMet02/03/18:70023.2666666734 S019LabasaMet02/03/18:80022.9333333324 S019LabasaMet02/03/18:90022.621 S019LabasaMet02/03/18:100022.3333333326 S001NadiMet02/03/18:110022.0666666728 S001NadiMet02/03/18:120021.848 S001NadiMet02/04/18:10021.6666666746 S001NadiMet02/04/18:20021.5333333327 S001NadiMet02/04/18:30021.432 S001NadiMet02/04/18:40022.5333333330 S001NadiMet02/04/18:50024.444 S001NadiMet02/04/18:60026.447 S001NadiMet02/04/18:70028.2666666745 S010SuvaMet02/04/18:80029.6666666745 S010SuvaMet02/04/18:90030.6666666729 S010SuvaMet02/04/18:10003124 S010SuvaMet02/04/18:110030.7333333347 S010SuvaMet02/04/18:120029.650 S010SuvaMet02/05/18:10027.6666666744 S010SuvaMet02/05/18:20026.5333333321 S010SuvaMet02/05/18:30025.6666666739 S010SuvaMet02/05/18:40024.9333333350 S019LabasaMet02/05/18:50024.3333333336 S019LabasaMet02/05/18:60023.8666666739 S019LabasaMet02/05/18:70023.430
Nov 21, 2021
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here