Question: Using the Java program write a program that will calculate the percentage of Covid positives for a given state .. Create a package that prints

Using the Java program write a program that will calculate the percentage of Covid positives for a given state .. Create a package that prints the blueprint name Covid.java with the following diagram Using the Java program write a program that will calculate the percentage Then create another package that should do

a) Ask the user for the name of the state, the number of cases, and the population of the state. b) Using the full constructor, create a Covid instance. c) Call your toString() method on that object to print out the results.

Sample output: What state? Virginia How many Covid cases has there been in Virginia? 478,619 What is the population of the state? 8,535,519 Virginia with a population of 8535519 has had 478619 cases of Covid for a rate of 5.61% NOTE: the percentage is listed to two decimals. Try to get yours to do that. you can find data here https://www.worldometers.info/coronavirus/country/us/

> Covid quizMod 1 Week 1 a state: String numCases: int a population int Covidi) Covid(String,int, int) toString():String percent().double getState(): String setState(String) void getNumCases():int setNumCases(int):void getPopulation():int setPopulation(int):void

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!