SlideShare uma empresa Scribd logo
1 de 4
Baixar para ler offline
C++ Programming Assignment 
ATM Machine Phase 1 
In this assignment you will create a program that allows a user to do the 
following: 
1) Create a bank account by supplying a user id and password. 
2) Login using their id and password. 
3) Quit the program. 
Now if login was successful the user will be able to do the following: 
1) Withdraw money. 
2) Deposit money. 
3) Request balance. 
4) Quit the program. 
If login was not successful (for example the id or password did not match) 
then the user will be taken back to the introduction menu. 
This is what your program in action will look like: 
Hi! Welcome to Mr. Zamar’s ATM Machine! 
Please select an option from the menu below: 
l -> Login 
c -> Create New Account 
q -> Quit 
> l 
Please enter your user id: 12 
Please enter your password 2345 
******** LOGIN FAILED! ******** 
Please select an option from the menu below: 
l -> Login 
c -> Create New Account 
q -> Quit 
> c 
Please enter your user name: 12 
Please enter your password: 2345 
Thank You! Your account has been created! 
l -> Login 
c -> Create New Account 
q -> Quit 
> l
Please enter your user id: 12 
Please enter your password: 2345 
Access Granted! 
d -> Deposit Money 
w -> Withdraw Money 
r -> Request Balance 
> d 
Amount of deposit: $20 
d -> Deposit Money 
w -> Withdraw Money 
r -> Request Balance 
> r 
Your balance is $20. 
d -> Deposit Money 
w -> Withdraw Money 
r -> Request Balance 
> w 
Amount of withdrawal: $2.5 
d -> Deposit Money 
w -> Withdraw Money 
r -> Request Balance 
> r 
Your balance is $17.5. 
d -> Deposit Money 
w -> Withdraw Money 
r -> Request Balance 
> q 
Thanks for stopping by! 
Phase 1 of this project will require you complete the code found on the next page.
// CODE STARTS HERE 
#include <iostream.h> 
#include <stdlib.h> 
// function prototypes 
void printIntroMenu(); 
void printMainMenu(); 
void start(); 
void login(); 
void createAccount(); 
// global variable (use this variable to store the user’s menu selection) 
char menuInput; 
// the main function 
int main() 
{ 
// TO WRITE A WELCOME MESSAGE HERE 
// call the function start 
start(); 
return 0; 
} 
void printIntroMenu() 
{ 
// WRITE CODE HERE 
} 
void printMainMenu() 
{ 
// WRITE CODE HERE 
} 
void start() 
{ 
// EXPLANATION OF CODE THAT GOES HERE IS BELOW 
} 
void createAccount() 
{ 
// PHASE 2 
} 
void login() 
{ 
// PHASE 2 
} 
// CODE ENDS HERE
The function printIntroMenu() displays the following: 
Please select an option from the menu below: 
l -> Login 
c -> Create New Account 
q -> Quit 
> 
The function printMainMenu() displays the following menu: 
d -> Deposit Money 
w -> Withdraw Money 
r -> Request Balance 
q -> Quit 
> 
The function start() does the following: 
1) Displays the following message, “Please select an option from the menu below: ” 
2) Displays the introduction menu. Do this by calling the function you created 
earlier, printIntroMenu() 
3) Program halts and waits for the user to make their selection. Use the cin >> 
function to accomplish this step. 
4) Now use a switch statement to do the following: 
If the user types the character ‘l’ then the function login() is called 
If the user types the character ‘c’ then the function createAccount() is called. 
If the user types ‘q’ your program will terminate by calling the function exit(0)

Mais conteúdo relacionado

Semelhante a A09

Cbsecomputersciencecclass12boardproject bankmanagmentsystem-180703065625-conv...
Cbsecomputersciencecclass12boardproject bankmanagmentsystem-180703065625-conv...Cbsecomputersciencecclass12boardproject bankmanagmentsystem-180703065625-conv...
Cbsecomputersciencecclass12boardproject bankmanagmentsystem-180703065625-conv...sriram sarwan
 
Banks offer various types of accounts, such as savings, checking, cer.pdf
 Banks offer various types of accounts, such as savings, checking, cer.pdf Banks offer various types of accounts, such as savings, checking, cer.pdf
Banks offer various types of accounts, such as savings, checking, cer.pdfakbsingh1313
 
Cbse computer science (c++) class 12 board project bank managment system
Cbse computer science (c++)  class 12 board project  bank managment systemCbse computer science (c++)  class 12 board project  bank managment system
Cbse computer science (c++) class 12 board project bank managment systempranoy_seenu
 
TechSupportCh 21 project.doc1Projects.doc Project 21-.docx
TechSupportCh 21 project.doc1Projects.doc Project 21-.docxTechSupportCh 21 project.doc1Projects.doc Project 21-.docx
TechSupportCh 21 project.doc1Projects.doc Project 21-.docxmattinsonjanel
 
GWe are built to make mistakes,coded for error.—Lewis Thomas.docx
GWe are built to make mistakes,coded for error.—Lewis Thomas.docxGWe are built to make mistakes,coded for error.—Lewis Thomas.docx
GWe are built to make mistakes,coded for error.—Lewis Thomas.docxbenjaminjames21681
 
Please distinguish between the .h and .cpp file, create a fully work.pdf
Please distinguish between the .h and .cpp file, create a fully work.pdfPlease distinguish between the .h and .cpp file, create a fully work.pdf
Please distinguish between the .h and .cpp file, create a fully work.pdfneerajsachdeva33
 
"Bank management system"
"Bank management system""Bank management system"
"Bank management system"vivek kct
 
Bank management system
Bank management systemBank management system
Bank management systemMahmudul Hasan
 
I need help creating a basic and simple Java program. Here is the ex.pdf
I need help creating a basic and simple Java program. Here is the ex.pdfI need help creating a basic and simple Java program. Here is the ex.pdf
I need help creating a basic and simple Java program. Here is the ex.pdfrajeshjangid1865
 
Section B Exercise Slides 3 windows 2003
Section B Exercise Slides 3 windows 2003Section B Exercise Slides 3 windows 2003
Section B Exercise Slides 3 windows 2003Spark48
 
Bank Management System.pptx
Bank Management System.pptxBank Management System.pptx
Bank Management System.pptxAdharshKokkula
 
Kier senior team visits presentation v1 master
Kier senior team visits presentation v1 masterKier senior team visits presentation v1 master
Kier senior team visits presentation v1 masterDollyParker
 
BANK MANAGEMNT SYSTEM.pptx
BANK MANAGEMNT SYSTEM.pptxBANK MANAGEMNT SYSTEM.pptx
BANK MANAGEMNT SYSTEM.pptxVjVj28
 

Semelhante a A09 (20)

Cbsecomputersciencecclass12boardproject bankmanagmentsystem-180703065625-conv...
Cbsecomputersciencecclass12boardproject bankmanagmentsystem-180703065625-conv...Cbsecomputersciencecclass12boardproject bankmanagmentsystem-180703065625-conv...
Cbsecomputersciencecclass12boardproject bankmanagmentsystem-180703065625-conv...
 
Cpe%20ppt (1).pptx
Cpe%20ppt (1).pptxCpe%20ppt (1).pptx
Cpe%20ppt (1).pptx
 
Banks offer various types of accounts, such as savings, checking, cer.pdf
 Banks offer various types of accounts, such as savings, checking, cer.pdf Banks offer various types of accounts, such as savings, checking, cer.pdf
Banks offer various types of accounts, such as savings, checking, cer.pdf
 
Cbse computer science (c++) class 12 board project bank managment system
Cbse computer science (c++)  class 12 board project  bank managment systemCbse computer science (c++)  class 12 board project  bank managment system
Cbse computer science (c++) class 12 board project bank managment system
 
TechSupportCh 21 project.doc1Projects.doc Project 21-.docx
TechSupportCh 21 project.doc1Projects.doc Project 21-.docxTechSupportCh 21 project.doc1Projects.doc Project 21-.docx
TechSupportCh 21 project.doc1Projects.doc Project 21-.docx
 
GWe are built to make mistakes,coded for error.—Lewis Thomas.docx
GWe are built to make mistakes,coded for error.—Lewis Thomas.docxGWe are built to make mistakes,coded for error.—Lewis Thomas.docx
GWe are built to make mistakes,coded for error.—Lewis Thomas.docx
 
C programming
C programmingC programming
C programming
 
Please distinguish between the .h and .cpp file, create a fully work.pdf
Please distinguish between the .h and .cpp file, create a fully work.pdfPlease distinguish between the .h and .cpp file, create a fully work.pdf
Please distinguish between the .h and .cpp file, create a fully work.pdf
 
"Bank management system"
"Bank management system""Bank management system"
"Bank management system"
 
Bank Management System
Bank Management SystemBank Management System
Bank Management System
 
Bank management system
Bank management systemBank management system
Bank management system
 
ATM UI prototyping
ATM UI prototypingATM UI prototyping
ATM UI prototyping
 
I need help creating a basic and simple Java program. Here is the ex.pdf
I need help creating a basic and simple Java program. Here is the ex.pdfI need help creating a basic and simple Java program. Here is the ex.pdf
I need help creating a basic and simple Java program. Here is the ex.pdf
 
Section B Exercise Slides 3 windows 2003
Section B Exercise Slides 3 windows 2003Section B Exercise Slides 3 windows 2003
Section B Exercise Slides 3 windows 2003
 
hotel managment system (1)
hotel managment system (1)hotel managment system (1)
hotel managment system (1)
 
Bank Management System.pptx
Bank Management System.pptxBank Management System.pptx
Bank Management System.pptx
 
Kier senior team visits presentation v1 master
Kier senior team visits presentation v1 masterKier senior team visits presentation v1 master
Kier senior team visits presentation v1 master
 
BANK MANAGEMNT SYSTEM.pptx
BANK MANAGEMNT SYSTEM.pptxBANK MANAGEMNT SYSTEM.pptx
BANK MANAGEMNT SYSTEM.pptx
 
Atm Simulator
Atm SimulatorAtm Simulator
Atm Simulator
 
Atm Simulator
Atm SimulatorAtm Simulator
Atm Simulator
 

Mais de lksoo

Mais de lksoo (20)

Lo48
Lo48Lo48
Lo48
 
Lo43
Lo43Lo43
Lo43
 
Lo37
Lo37Lo37
Lo37
 
Lo27
Lo27Lo27
Lo27
 
Lo17
Lo17Lo17
Lo17
 
Lo12
Lo12Lo12
Lo12
 
T3
T3T3
T3
 
T2
T2T2
T2
 
T1
T1T1
T1
 
T4
T4T4
T4
 
P5
P5P5
P5
 
P4
P4P4
P4
 
P3
P3P3
P3
 
P1
P1P1
P1
 
P2
P2P2
P2
 
L10
L10L10
L10
 
L9
L9L9
L9
 
L8
L8L8
L8
 
L7
L7L7
L7
 
L6
L6L6
L6
 

Último

Unraveling Hypertext_ Analyzing Postmodern Elements in Literature.pptx
Unraveling Hypertext_ Analyzing  Postmodern Elements in  Literature.pptxUnraveling Hypertext_ Analyzing  Postmodern Elements in  Literature.pptx
Unraveling Hypertext_ Analyzing Postmodern Elements in Literature.pptxDhatriParmar
 
PART 1 - CHAPTER 1 - CELL THE FUNDAMENTAL UNIT OF LIFE
PART 1 - CHAPTER 1 - CELL THE FUNDAMENTAL UNIT OF LIFEPART 1 - CHAPTER 1 - CELL THE FUNDAMENTAL UNIT OF LIFE
PART 1 - CHAPTER 1 - CELL THE FUNDAMENTAL UNIT OF LIFEMISSRITIMABIOLOGYEXP
 
How to Manage Buy 3 Get 1 Free in Odoo 17
How to Manage Buy 3 Get 1 Free in Odoo 17How to Manage Buy 3 Get 1 Free in Odoo 17
How to Manage Buy 3 Get 1 Free in Odoo 17Celine George
 
How to Uninstall a Module in Odoo 17 Using Command Line
How to Uninstall a Module in Odoo 17 Using Command LineHow to Uninstall a Module in Odoo 17 Using Command Line
How to Uninstall a Module in Odoo 17 Using Command LineCeline George
 
Man or Manufactured_ Redefining Humanity Through Biopunk Narratives.pptx
Man or Manufactured_ Redefining Humanity Through Biopunk Narratives.pptxMan or Manufactured_ Redefining Humanity Through Biopunk Narratives.pptx
Man or Manufactured_ Redefining Humanity Through Biopunk Narratives.pptxDhatriParmar
 
Scientific Writing :Research Discourse
Scientific  Writing :Research  DiscourseScientific  Writing :Research  Discourse
Scientific Writing :Research DiscourseAnita GoswamiGiri
 
4.9.24 Social Capital and Social Exclusion.pptx
4.9.24 Social Capital and Social Exclusion.pptx4.9.24 Social Capital and Social Exclusion.pptx
4.9.24 Social Capital and Social Exclusion.pptxmary850239
 
Q-Factor HISPOL Quiz-6th April 2024, Quiz Club NITW
Q-Factor HISPOL Quiz-6th April 2024, Quiz Club NITWQ-Factor HISPOL Quiz-6th April 2024, Quiz Club NITW
Q-Factor HISPOL Quiz-6th April 2024, Quiz Club NITWQuiz Club NITW
 
An Overview of the Calendar App in Odoo 17 ERP
An Overview of the Calendar App in Odoo 17 ERPAn Overview of the Calendar App in Odoo 17 ERP
An Overview of the Calendar App in Odoo 17 ERPCeline George
 
Healthy Minds, Flourishing Lives: A Philosophical Approach to Mental Health a...
Healthy Minds, Flourishing Lives: A Philosophical Approach to Mental Health a...Healthy Minds, Flourishing Lives: A Philosophical Approach to Mental Health a...
Healthy Minds, Flourishing Lives: A Philosophical Approach to Mental Health a...Osopher
 
Blowin' in the Wind of Caste_ Bob Dylan's Song as a Catalyst for Social Justi...
Blowin' in the Wind of Caste_ Bob Dylan's Song as a Catalyst for Social Justi...Blowin' in the Wind of Caste_ Bob Dylan's Song as a Catalyst for Social Justi...
Blowin' in the Wind of Caste_ Bob Dylan's Song as a Catalyst for Social Justi...DhatriParmar
 
DBMSArchitecture_QueryProcessingandOptimization.pdf
DBMSArchitecture_QueryProcessingandOptimization.pdfDBMSArchitecture_QueryProcessingandOptimization.pdf
DBMSArchitecture_QueryProcessingandOptimization.pdfChristalin Nelson
 
ICS 2208 Lecture Slide Notes for Topic 6
ICS 2208 Lecture Slide Notes for Topic 6ICS 2208 Lecture Slide Notes for Topic 6
ICS 2208 Lecture Slide Notes for Topic 6Vanessa Camilleri
 
Tree View Decoration Attribute in the Odoo 17
Tree View Decoration Attribute in the Odoo 17Tree View Decoration Attribute in the Odoo 17
Tree View Decoration Attribute in the Odoo 17Celine George
 
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 - I-LEARN SMART WORLD - CẢ NĂM - CÓ FILE NGHE (BẢN...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 - I-LEARN SMART WORLD - CẢ NĂM - CÓ FILE NGHE (BẢN...BÀI TẬP BỔ TRỢ TIẾNG ANH 8 - I-LEARN SMART WORLD - CẢ NĂM - CÓ FILE NGHE (BẢN...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 - I-LEARN SMART WORLD - CẢ NĂM - CÓ FILE NGHE (BẢN...Nguyen Thanh Tu Collection
 
CLASSIFICATION OF ANTI - CANCER DRUGS.pptx
CLASSIFICATION OF ANTI - CANCER DRUGS.pptxCLASSIFICATION OF ANTI - CANCER DRUGS.pptx
CLASSIFICATION OF ANTI - CANCER DRUGS.pptxAnupam32727
 
Indexing Structures in Database Management system.pdf
Indexing Structures in Database Management system.pdfIndexing Structures in Database Management system.pdf
Indexing Structures in Database Management system.pdfChristalin Nelson
 
Narcotic and Non Narcotic Analgesic..pdf
Narcotic and Non Narcotic Analgesic..pdfNarcotic and Non Narcotic Analgesic..pdf
Narcotic and Non Narcotic Analgesic..pdfPrerana Jadhav
 

Último (20)

Unraveling Hypertext_ Analyzing Postmodern Elements in Literature.pptx
Unraveling Hypertext_ Analyzing  Postmodern Elements in  Literature.pptxUnraveling Hypertext_ Analyzing  Postmodern Elements in  Literature.pptx
Unraveling Hypertext_ Analyzing Postmodern Elements in Literature.pptx
 
prashanth updated resume 2024 for Teaching Profession
prashanth updated resume 2024 for Teaching Professionprashanth updated resume 2024 for Teaching Profession
prashanth updated resume 2024 for Teaching Profession
 
PART 1 - CHAPTER 1 - CELL THE FUNDAMENTAL UNIT OF LIFE
PART 1 - CHAPTER 1 - CELL THE FUNDAMENTAL UNIT OF LIFEPART 1 - CHAPTER 1 - CELL THE FUNDAMENTAL UNIT OF LIFE
PART 1 - CHAPTER 1 - CELL THE FUNDAMENTAL UNIT OF LIFE
 
How to Manage Buy 3 Get 1 Free in Odoo 17
How to Manage Buy 3 Get 1 Free in Odoo 17How to Manage Buy 3 Get 1 Free in Odoo 17
How to Manage Buy 3 Get 1 Free in Odoo 17
 
How to Uninstall a Module in Odoo 17 Using Command Line
How to Uninstall a Module in Odoo 17 Using Command LineHow to Uninstall a Module in Odoo 17 Using Command Line
How to Uninstall a Module in Odoo 17 Using Command Line
 
Plagiarism,forms,understand about plagiarism,avoid plagiarism,key significanc...
Plagiarism,forms,understand about plagiarism,avoid plagiarism,key significanc...Plagiarism,forms,understand about plagiarism,avoid plagiarism,key significanc...
Plagiarism,forms,understand about plagiarism,avoid plagiarism,key significanc...
 
Man or Manufactured_ Redefining Humanity Through Biopunk Narratives.pptx
Man or Manufactured_ Redefining Humanity Through Biopunk Narratives.pptxMan or Manufactured_ Redefining Humanity Through Biopunk Narratives.pptx
Man or Manufactured_ Redefining Humanity Through Biopunk Narratives.pptx
 
Scientific Writing :Research Discourse
Scientific  Writing :Research  DiscourseScientific  Writing :Research  Discourse
Scientific Writing :Research Discourse
 
4.9.24 Social Capital and Social Exclusion.pptx
4.9.24 Social Capital and Social Exclusion.pptx4.9.24 Social Capital and Social Exclusion.pptx
4.9.24 Social Capital and Social Exclusion.pptx
 
Q-Factor HISPOL Quiz-6th April 2024, Quiz Club NITW
Q-Factor HISPOL Quiz-6th April 2024, Quiz Club NITWQ-Factor HISPOL Quiz-6th April 2024, Quiz Club NITW
Q-Factor HISPOL Quiz-6th April 2024, Quiz Club NITW
 
An Overview of the Calendar App in Odoo 17 ERP
An Overview of the Calendar App in Odoo 17 ERPAn Overview of the Calendar App in Odoo 17 ERP
An Overview of the Calendar App in Odoo 17 ERP
 
Healthy Minds, Flourishing Lives: A Philosophical Approach to Mental Health a...
Healthy Minds, Flourishing Lives: A Philosophical Approach to Mental Health a...Healthy Minds, Flourishing Lives: A Philosophical Approach to Mental Health a...
Healthy Minds, Flourishing Lives: A Philosophical Approach to Mental Health a...
 
Blowin' in the Wind of Caste_ Bob Dylan's Song as a Catalyst for Social Justi...
Blowin' in the Wind of Caste_ Bob Dylan's Song as a Catalyst for Social Justi...Blowin' in the Wind of Caste_ Bob Dylan's Song as a Catalyst for Social Justi...
Blowin' in the Wind of Caste_ Bob Dylan's Song as a Catalyst for Social Justi...
 
DBMSArchitecture_QueryProcessingandOptimization.pdf
DBMSArchitecture_QueryProcessingandOptimization.pdfDBMSArchitecture_QueryProcessingandOptimization.pdf
DBMSArchitecture_QueryProcessingandOptimization.pdf
 
ICS 2208 Lecture Slide Notes for Topic 6
ICS 2208 Lecture Slide Notes for Topic 6ICS 2208 Lecture Slide Notes for Topic 6
ICS 2208 Lecture Slide Notes for Topic 6
 
Tree View Decoration Attribute in the Odoo 17
Tree View Decoration Attribute in the Odoo 17Tree View Decoration Attribute in the Odoo 17
Tree View Decoration Attribute in the Odoo 17
 
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 - I-LEARN SMART WORLD - CẢ NĂM - CÓ FILE NGHE (BẢN...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 - I-LEARN SMART WORLD - CẢ NĂM - CÓ FILE NGHE (BẢN...BÀI TẬP BỔ TRỢ TIẾNG ANH 8 - I-LEARN SMART WORLD - CẢ NĂM - CÓ FILE NGHE (BẢN...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 - I-LEARN SMART WORLD - CẢ NĂM - CÓ FILE NGHE (BẢN...
 
CLASSIFICATION OF ANTI - CANCER DRUGS.pptx
CLASSIFICATION OF ANTI - CANCER DRUGS.pptxCLASSIFICATION OF ANTI - CANCER DRUGS.pptx
CLASSIFICATION OF ANTI - CANCER DRUGS.pptx
 
Indexing Structures in Database Management system.pdf
Indexing Structures in Database Management system.pdfIndexing Structures in Database Management system.pdf
Indexing Structures in Database Management system.pdf
 
Narcotic and Non Narcotic Analgesic..pdf
Narcotic and Non Narcotic Analgesic..pdfNarcotic and Non Narcotic Analgesic..pdf
Narcotic and Non Narcotic Analgesic..pdf
 

A09

  • 1. C++ Programming Assignment ATM Machine Phase 1 In this assignment you will create a program that allows a user to do the following: 1) Create a bank account by supplying a user id and password. 2) Login using their id and password. 3) Quit the program. Now if login was successful the user will be able to do the following: 1) Withdraw money. 2) Deposit money. 3) Request balance. 4) Quit the program. If login was not successful (for example the id or password did not match) then the user will be taken back to the introduction menu. This is what your program in action will look like: Hi! Welcome to Mr. Zamar’s ATM Machine! Please select an option from the menu below: l -> Login c -> Create New Account q -> Quit > l Please enter your user id: 12 Please enter your password 2345 ******** LOGIN FAILED! ******** Please select an option from the menu below: l -> Login c -> Create New Account q -> Quit > c Please enter your user name: 12 Please enter your password: 2345 Thank You! Your account has been created! l -> Login c -> Create New Account q -> Quit > l
  • 2. Please enter your user id: 12 Please enter your password: 2345 Access Granted! d -> Deposit Money w -> Withdraw Money r -> Request Balance > d Amount of deposit: $20 d -> Deposit Money w -> Withdraw Money r -> Request Balance > r Your balance is $20. d -> Deposit Money w -> Withdraw Money r -> Request Balance > w Amount of withdrawal: $2.5 d -> Deposit Money w -> Withdraw Money r -> Request Balance > r Your balance is $17.5. d -> Deposit Money w -> Withdraw Money r -> Request Balance > q Thanks for stopping by! Phase 1 of this project will require you complete the code found on the next page.
  • 3. // CODE STARTS HERE #include <iostream.h> #include <stdlib.h> // function prototypes void printIntroMenu(); void printMainMenu(); void start(); void login(); void createAccount(); // global variable (use this variable to store the user’s menu selection) char menuInput; // the main function int main() { // TO WRITE A WELCOME MESSAGE HERE // call the function start start(); return 0; } void printIntroMenu() { // WRITE CODE HERE } void printMainMenu() { // WRITE CODE HERE } void start() { // EXPLANATION OF CODE THAT GOES HERE IS BELOW } void createAccount() { // PHASE 2 } void login() { // PHASE 2 } // CODE ENDS HERE
  • 4. The function printIntroMenu() displays the following: Please select an option from the menu below: l -> Login c -> Create New Account q -> Quit > The function printMainMenu() displays the following menu: d -> Deposit Money w -> Withdraw Money r -> Request Balance q -> Quit > The function start() does the following: 1) Displays the following message, “Please select an option from the menu below: ” 2) Displays the introduction menu. Do this by calling the function you created earlier, printIntroMenu() 3) Program halts and waits for the user to make their selection. Use the cin >> function to accomplish this step. 4) Now use a switch statement to do the following: If the user types the character ‘l’ then the function login() is called If the user types the character ‘c’ then the function createAccount() is called. If the user types ‘q’ your program will terminate by calling the function exit(0)