Write a Java program correctly that generates a report of proof of vaccination against COVID-19 for the people who received their dose of vaccination. Write a program which: 1. Display a welcome message. 2. Then prompts the user to enter the following: • First name, with first letter uppercase, which is then stores in a variable of type String. • Last name, with first letter uppercase which is then stores in a variable of type String. • Day of birth, set as a number between 1 and 31, which is then stores in a variable of type int. • Month of birth, set as a number between 1 and 12, which is then stores in a variable of type int. • Year of birth, set as a number between 1920 and 2006, which is then stores in a variable of type int. • Day of vaccination, set as a number between 1 and 31, which is then stores in a variable of type int. • Month of vaccination. set as a number between 1 and 12, which is then stores in a variable of type int. • Year of vaccination, set as a number between 2020 and 2021, which is then stores in a variable of type int. • Name of vaccination, which is then stores in a variable of type String, example Pfizer, Moderna, AstraZeneca, etc. • Location of the center of the vaccination, which is then stores in a variable of type String and with first letter uppercase, example: Montreal, Laval, Dorval, etc. • Lot of vaccination, which it then stores in a variable of type String, example: CW0123. 3. Display the information above in a form of a report, see a sample output in next page. 4. Display a farewell message, so that the user knows that the program has terminated

Programming with Microsoft Visual Basic 2017
8th Edition
ISBN:9781337102124
Author:Diane Zak
Publisher:Diane Zak
Chapter11: Sql Server Databases
Section: Chapter Questions
Problem 6E
icon
Related questions
Question

Write a Java program correctly that generates a report of proof of vaccination against COVID-19 for the people
who received their dose of vaccination.

Write a program which:
1. Display a welcome message.
2. Then prompts the user to enter the following:
• First name, with first letter uppercase, which is then stores in a variable of type String.
• Last name, with first letter uppercase which is then stores in a variable of type String.
• Day of birth, set as a number between 1 and 31, which is then stores in a variable of type
int.
• Month of birth, set as a number between 1 and 12, which is then stores in a variable of type
int.
• Year of birth, set as a number between 1920 and 2006, which is then stores in a variable of
type int.
• Day of vaccination, set as a number between 1 and 31, which is then stores in a variable of
type int.
• Month of vaccination. set as a number between 1 and 12, which is then stores in a variable
of type int.
• Year of vaccination, set as a number between 2020 and 2021, which is then stores in a
variable of type int.
• Name of vaccination, which is then stores in a variable of type String, example Pfizer,
Moderna, AstraZeneca, etc.
• Location of the center of the vaccination, which is then stores in a variable of type String
and with first letter uppercase, example: Montreal, Laval, Dorval, etc.
• Lot of vaccination, which it then stores in a variable of type String, example: CW0123.
3. Display the information above in a form of a report, see a sample output in next page.
4. Display a farewell message, so that the user knows that the program has terminated
normally, example:
Thank you for choosing our services.
Report generated successfully. 

 

Welcome to the COVID-19 Report generator:
Please enter the client info:
First Name ? Alfred
Last Name ? LeBland
Day of Birth (between 1 and 31) ? 1
Month of Birth (between 1 and 12) ? 12
Year of Birth (between 1920 and 2006) ? 1975
Day of vaccination (between 1 and 31) ? 12
Month of vaccination (between 1 and 12) ? 11
Year of vaccination (between 2019 and 2021) ? 2020
Name of vaccination (Pfizer, Moderna, Astrazeneca, etc.) ? Pfizer
Location of the center of the vaccination ? Laval
Lot of vaccination ? Cw0123
Health and Social Services
Proof of Vaccination against COVID-19
User Information
LeBlanc, Alfred
1/12/1975
Name
DOB
Vaccine Administered
Name
PB COVID-19
Code
Pfizer
Lot
Cw0123
12/11/2020
Laval
Date
Location
Thank you for choosing our services.
Report generated successfully.
Figure 1. Sample output screen for Question 1.
Note: Your program must display the same information but can be formatted differently.
Transcribed Image Text:Welcome to the COVID-19 Report generator: Please enter the client info: First Name ? Alfred Last Name ? LeBland Day of Birth (between 1 and 31) ? 1 Month of Birth (between 1 and 12) ? 12 Year of Birth (between 1920 and 2006) ? 1975 Day of vaccination (between 1 and 31) ? 12 Month of vaccination (between 1 and 12) ? 11 Year of vaccination (between 2019 and 2021) ? 2020 Name of vaccination (Pfizer, Moderna, Astrazeneca, etc.) ? Pfizer Location of the center of the vaccination ? Laval Lot of vaccination ? Cw0123 Health and Social Services Proof of Vaccination against COVID-19 User Information LeBlanc, Alfred 1/12/1975 Name DOB Vaccine Administered Name PB COVID-19 Code Pfizer Lot Cw0123 12/11/2020 Laval Date Location Thank you for choosing our services. Report generated successfully. Figure 1. Sample output screen for Question 1. Note: Your program must display the same information but can be formatted differently.
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Array
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning
Np Ms Office 365/Excel 2016 I Ntermed
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage