Question: Create a program that will prompt for user information for a Web site. Use a structure to store the data. The structure will need to
Create a program that will prompt for user information for a Web site. Use a structure to store the data. The structure will need to include the following items:
First Name - string
Last Name - string
Full Name - string
Birth Date - int (assume format yyyymmdd)
IsLeasingAutomobile - bool
yearlySalary - float
Create a single structure from the items listed above.
Prompt for all items except "Full Name" and load the input directly into a variable based on this structure .
After the data is loaded, pass the structure by reference to a method called "loadFullName". Inside the "loadFullName" method, load the Full Name data item with a string that is a combination of First Name, space, Last Name. The full name must be converted to uppercase. After the loadFullName has executed, display the value of all the data items in the variable structure.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
