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

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
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
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education