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 tru

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
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 2 steps

Blurred answer
Similar questions
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY