Question: Create a program that prompts the user for the following information and store each of the information in their respective variables. - Firstname - Lastname
Create a program that prompts the user for the following information and store each of the information in their respective variables. - Firstname - Lastname - Address - City - Province - PostalCode Validation: For each of the prompt, make sure to perform validation to check if the value entered by the user is not blank. If the value is blank then display Invalid value. and exit the program. (Hint: Use this example: firstName.isBlank()) then display in the format: "Your mailing address is: FullName (this is the concatenation of Firstname and the Lastname) Address City + Province PostalCode" Example output: Your mailing address is: John Doe 123 Smith Rd. Toronto, ON M5V 2F5
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
