Write a program to assess if the user can get vaccinated for COVID-19 and if so when based on the table below. Note, the table below is my own version of the eligibility criteria and has nothing to do with what the State has proposed. See sample runs below.

Criteria Eligible When?
Health Care worker (Any age) Yes Now
Underlying conditions (ages 65 and above) Yes April 1st
Ages 65 and above (no underlying conditions) Yes April 15th
Underlying conditions (ages 45 and above) Yes May 1st
Ages 45 and above (no underlying conditions) Yes May 15th
Anyone above 16 Yes June 1st
16 and below No

Sample run

Below are a few sample runs. Test your program with the following data (input is in blue):

Welcome to my COVID-19 Vaccine Eligibility program!!
Please enter your age: 15
You are not eligible for the vaccine!
Welcome to my COVID-19 Vaccine Eligibility program!!
Please enter your age: 45
Are you a health care worker? (y/n) n
Do you have an underlying condition? (y/n) y
You are eligible and can register after May 1st.
Welcome to my COVID-19 Vaccine Eligibility program!!
Please enter your age: 45
Are you a health care worker? (y/n) y
You are eligible and can register now.
Welcome to my COVID-19 Vaccine Eligibility program!!
Please enter your age: 65
Are you a health care worker? (y/n) n
Do you have an underlying condition? (y/n) n
You are eligible and can register after April 15th.
Welcome to my COVID-19 Vaccine Eligibility program!!
Please enter your age: 65
Are you a health care worker? (y/n) n
Do you have an underlying condition? (y/n) y
You are eligible and can register after April 1st.
Academic Honesty!
It is not our intention to break the school's academic policy. Posted solutions are meant to be used as a reference and should not be submitted as is. We are not held liable for any misuse of the solutions. Please see the frequently asked questions page for further questions and inquiries.
Kindly complete the form. Please provide a valid email address and we will get back to you within 24 hours. Payment is through PayPal, Buy me a Coffee or Cryptocurrency. We are a nonprofit organization however we need funds to keep this organization operating and to be able to complete our research and development projects.