
C++ program
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. See Section 6-13 on how to pass a parameter by reference.
R
eview of tasks:
a. Create User Structureb. Assign a Variable to a User Structureb. Load the Variable Structure Datac. Pass the Variable Structured Data to "loadFullName"d. Display the values of the variable structure.
Note:Input for a boolean var is 0 for false and 1 for true. Adding this line to display once will help display the word false or true in the output.std::cout << std::boolalpha; cout << "is Leasing = " << VarStrucName.isLeasingAutomobile << endl; // will display true or false - with not 0 being true

Trending nowThis is a popular solution!
Step by stepSolved in 3 steps with 1 images

- C language codearrow_forwardOnce you have created an instance of a structure, how can you access its fields?arrow_forwardDesign a "Car Rental" Visual C# application, which allows the user to search for and book a car rental. It is required to create a database file that contains at least three related tables, the first of which contains the cars data with the data fields, such as: car ID car type car model quantity on stock cost per day Make up at least five records in the first table and save your database file in the default folder of your project. The second table should contain the customer information, such as: customer ID first name last name telephone number credit card data The third table should contain the bookings data, such as: booking ID car ID customer ID pick-up date drop-off date total cost Please note that you can create more tables as well as add more data fields, if necessary. Your program should contain multiple Windows forms as follows: The first form will enable the user to search for a car rental. If a car rental is selected, the second form may provide more into about the car that…arrow_forward
- C++ Programmingarrow_forwardA 3x3 design means that there are 3 ____ variables to be considered.arrow_forwardDescriptión Instructions Timed Test This test has a time limit of 30 minutes.This test will save and subr Warnings appear when half the time, 5 minutes, 1 minute, and 3 Multiple Attempts Not allowed. This test can only be taken once. Force Completion This test can be saved and resumed at any point until time has exp Remaining Time: 08 minutes, 03 seconds. * Question Completion Status: A Moving to another question will save this response. Question 5 What type of structure allows you to repeat a set of instructions multiple times? O a. sequence O b. loop O c. decision O d. nested A Moving to another question will save this response. 15 7 10 % & 4.arrow_forward
- Program language C: I need to display three columns named a, b, and c. There can be 12 rows.arrow_forwardFor what reason should you use new instead of the old operator when creating instances of a structure?arrow_forwardDesign a "Car Rental" Visual C# application, which allows the user to search for and book a car rental. It is required to create a database file that contains at least three related tables, the first of which contains the cars data with the data fields, such as: car ID car type car model quantity on stock cost per day Make up at least five records in the first table and save your database file in the default folder of your project. The second table should contain the customer information, such as: customer ID first name last name telephone number credit card data The third table should contain the bookings data, such as: booking ID car ID customer ID pick-up date drop-off date total cost Please note that you can create more tables as well as add more data fields, if necessary. Your program should contain multiple Windows forms as follows: The first form will enable the user to search for a car rental. If a car rental is selected, the second form may provide more into about the car that…arrow_forward
- Database System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- C How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education





