Question: Create a java program that is an automated system that takes key user information, matches that with a data in the system to determine the
Create a java program that is an automated system that takes key user information, matches that with a data in the system to determine the probability of infection spread and quarantine period. So creating a class named like IncomingPassenger which takes the passenger's user input full name and last name put in a separate variable. As well as the country from where the passenger is coming from along with the date of departure. Either in the same or another class have at least 5 countries named with a particular ranking (we assume that this ranking is based on the severity of COVID-19 spread/probability)- the ranking could be anything doesn't matter. Creating cases with these countries to determine quarantine period and display the quarantine period.(this can be something like, if country 1 or 2, quarantine is 07 days, if country is 3, quarantine 10 days, else quarantine is 14 days). Match if the passengers entered country is any one of those pre-existing countries in the program and if yes then display the appropriate case information and if no then display a default case.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
