Question

Create a program that allows a student to complete a registration form and displays a completion...

Create a program that allows a student to complete a registration form and displays a completion message that includes the user’s full name and a temporary password. Console Registration Form First name: Bjarne Last name: Stroustrup Birth year: 1950 Welcome Bjarne! Your registration is complete. Name: Bjarne Stroustrup Temporary password: Bjarne*1950 Specifications • The user’s full name consists of the user’s first name, a space, and the user’s last name. • The temporary password consists of the user’s first name, an asterisk (*), and the user’s birth year. • Assume the user will enter valid data.

Note: I want you to do it in C++ language

0 0
Add a comment Improve this question Transcribed image text
Answer #1

CODE:

#include <iostream>

using namespace std;

int main()
{   
//to store First Name and Last Name
string first_name,last_name;
  
//to store Birth Year
int birth_year;
  
cout<<"Registration Form : \n";
  
//Input of First Name
cout<<"First Name: ";
cin>>first_name;
  
//Input of Last Name
cout<<"Last Name: ";
cin>>last_name;
  
//Input of Birth Year
cout<<"Birth Year: ";
cin>>birth_year;
  
// Completed registration form
//printing completion details
cout<<"Welcome "<<first_name<<"! Your registration is complete. \n";
cout<<"Name: "<<first_name<<" "<<last_name<<endl;
cout<<"Temporary Password: "<<first_name<<"*"<<birth_year<<endl;
  
return 0;
}

OUTPUT:

Add a comment
Know the answer?
Add Answer to:
Create a program that allows a student to complete a registration form and displays a completion...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • PART 1 Create a program that allows a student to complete a registration form and displays...

    PART 1 Create a program that allows a student to complete a registration form and displays a completion message that includes the user's full name and a temporary password. PART 2 Create a program that calculates a user's weekly gross and take-home pay. DELIVERABLES 2 source code Python files. A Word document containing both source code and the screen print of the program outputs.

  • In Java please Create a GUI application that accepts student registration data. The GUI with valid...

    In Java please Create a GUI application that accepts student registration data. The GUI with valid data Shudent Fagtrtion x Rt Name Haold Moore Lst Name Yar of Brth 2001 Temporary PesowordHal200 Wlcome Harald Moore! RegsterEt The GUI with invalid data Shudent Fegtrtion DX Fect Name Haold Last Name ar of Brth 2001 Tempoay Pawod Haold 200 Pesse eer St and lact name and ye of bith Regster Et Specifications Use FXML to create the GUI The text box that...

  • Project overview: Create a java graphics program that displays an order menu and bill from a...

    Project overview: Create a java graphics program that displays an order menu and bill from a Sandwich shop, or any other establishment you prefer. In this program the design is left up to the programmer however good object oriented design is required. Below are two images that should be used to assist in development of your program. Items are selected on the Order Calculator and the Message window that displays the Subtotal, Tax and Total is displayed when the Calculate...

  • JAVA project PLEASE complete/ create project with comments in the programming explaining everything Text file Year...

    JAVA project PLEASE complete/ create project with comments in the programming explaining everything Text file Year of storm/ Name of storm/ mmdd storm started/ mmdd storm ended/ magnitude of storm/ //made up data 2004/Ali/1212/1219/1 2003/Bob/1123/1222/3 1980/Sarah/0123/0312/0 1956/Michael/1211/1223/4 1988/Ryan/0926/1019/ 1976/Tim/0318/1010/0 2006/Ronald/0919/1012/2 1996/Mona/0707/0723/1 2000/Kim/0101/0201/1 2001/Jim/1101/1201/3 Text file Class storm{ private String nameStorm; private int yearStorm; private int startStorm; private int endStorm; private int magStorm; public storm(String name, int year, int start, int end, int mag){ nameStorm = name; yearStorm = year; startStorm...

  • 23. What is the total net amount of capital gain reported on Form 1040? OA. $308...

    23. What is the total net amount of capital gain reported on Form 1040? OA. $308 OB. $2,411 C. $2,719 OD. $2,900 Advanced Scenario 7: Mark and Barbara Matthews Directions Using the tax software, complete the tax return, including Form 1040 and all appropri- ate forms, schedules, or worksheets. Answer the questions following the scenario. Note: When entering Social Security numbers (SSNs) or Employer Identification Numbers (EINS), replace the Xs as directed, or with any four digits of your choice....

  • Program 7 File Processing and Arrays (100 points) Overview: For this assignment, write a program that...

    Program 7 File Processing and Arrays (100 points) Overview: For this assignment, write a program that will process monthly sales data for a small company. The data will be used to calculate total sales for each month in a year. The monthly sales totals will be needed for later processing, so it will be stored in an array. Basic Logic for main() Note: all of the functions mentioned in this logic are described below. Declare an array of 12 float/doubles...

  • i need help with a mips program to to covert roman numerals to real numbers Lab 4: Roman Numeral Conversion Part A: Due...

    i need help with a mips program to to covert roman numerals to real numbers Lab 4: Roman Numeral Conversion Part A: Due Sunday, 19 May 2019, 11:59 PM Due Friday, 24 May 2019, 11:59 PM Part B: Minimum Submission Requirements Ensure that your Lab4 folder contains the following files (note the capitalization convention): o Diagram.pdf o Lab4. asm O README.txt Commit and push your repository Lab Objective In this lab, you will develop a more detailed understanding of how...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT