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
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.
Step by step
Solved in 2 steps