Question
As we (hopefully) near the end of the COVID pandemic it is still important for health officials to keep track of how many people there
As we (hopefully) near the end of the COVID pandemic it is still important for health officials to keep track of how many people there are with COVID and what the normalized data looks like. You will be making a program that can read in a spreadsheet with county names, total case numbers, and total population numbers, and return basic information.
I have provided a driver class, do not make any changes to this class, it will be used to grade your submission and should also help you test your work before you submit.
To make the code in the driver class run you will need to create two additional classes:
COVIDDataProcessing, will contain the following methods:
-
Read, which reads in a file and returns an arraylist of objects
-
Max, which takes in an arraylist and returns the county with the most cases per 100,000
-
Min, which takes in an arraylist and returns the county with the least cases per 100,000
-
StateCases, which takes in an ArrayList of Counties and returns an integer representing the cases per 100,000 of the state as a whole (You may assume that all of the counties are in the same state.)
Countries, the object class, which should contain the following:
-
Attributes: Name, totalActiveCOVIDCases, CountyPopulation
-
Appropriate Constructor
-
Get and Set methods for each attribute
-
A toString method.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started