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

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

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:

  1. First Name  - string
  2. Last Name  - string
  3. Full Name   - string
  4. Birth Date   - int  (assume format yyyymmdd)
  5. IsLeasingAutomobile - bool
  6. 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

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
Types of trees
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education