you are required to read input file containing data of countries or region, to compute and display the data in decreasing order, and some statistics in an output file. Structure of input file: The first two lines of input files contains the region information, date of taken data, and heading of the records. Each line of the rest in the input file contains country name, confirmed and death total cases. COVID_19_data class: used to store records from input file. You should provide generic methods to compute average of confirmed cases, to sort list in descending order using selection sortii , and any additional method(s) to solve the problem. Tester Class: your main method should class two methods to read the data and to display the result as shown below. Your class should be user friendly and control any unchecked errors
you are required to read input file containing data of countries or region, to compute and display the data in decreasing order, and some statistics in an output file. Structure of input file: The first two lines of input files contains the region information, date of taken data, and heading of the records. Each line of the rest in the input file contains country name, confirmed and death total cases. COVID_19_data class: used to store records from input file. You should provide generic methods to compute average of confirmed cases, to sort list in descending order using selection sortii , and any additional method(s) to solve the problem. Tester Class: your main method should class two methods to read the data and to display the result as shown below. Your class should be user friendly and control any unchecked errors
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 9 images