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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!