Public Class Bankingsystem Declarations string accname double balance 0 int pin, userpin, newpin void Banking System::create "Enter Your Name: " Cin, ignore Getline (ein, accnama) "Enter Your Pin: " Input user pin Void Banking System: pinchange "Input old Pin: " Input userpin If (pin a userpin) "Enter new pin: " Input newpin pin newpin "Your pin was successfully changed" Else "please re-enter old pin". void Banking System: :dispbalance. "Enter your pin: # Input userpin If (pin a userpin) "This is your correct balance: " print balance else "Please enter your correct pin". void Banking Systems:withdraw "Enter your pin: " Input userpin If (pin a userpin) "How much do you want to withdraw?" Input Kithin If (Within <- balance) balance within else "You don't have enough balance" el se "Please enter correct pin" void BankingSystem::deposit "Enter Your Pin: " Tanut userpin

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

please explain this pseudocode

START
Public Class Banking System
Declarations
string acename
double balance = 0
int pin, userpin, newpin
void Banking System::create
"Enter Your Name:
Cin, ignore
Getline (ein, accname)
"Enter Your Pin: "
Input user pin
Void Banking System: :pinchange
"Input old Pin: "
Input userpin
If (pin a userpin)
"Enter new pin: "
Input newpin
pin newpin
"Your pin was successfully changed"
Else
"Please re-enter old pin"
void Banking System: :dispbalance
"Enter your pin: "
Input userpin
If (pin
userpin)
"This is your correct balance: $"
print balance
else
"Please enter your correct pin"
void Banking System::withdraw
"Enter your pin: "
Input userpin
If (pin = userpin)
"How much do you want to withdraw?"
Input Kithin
If (Within <- balance)
balance within
else
"You don't have enough balance"
else
"Please enter correct pin"
void BankingSystem::deposit
"Enter Your Pin: "
Input userpin
Transcribed Image Text:START Public Class Banking System Declarations string acename double balance = 0 int pin, userpin, newpin void Banking System::create "Enter Your Name: Cin, ignore Getline (ein, accname) "Enter Your Pin: " Input user pin Void Banking System: :pinchange "Input old Pin: " Input userpin If (pin a userpin) "Enter new pin: " Input newpin pin newpin "Your pin was successfully changed" Else "Please re-enter old pin" void Banking System: :dispbalance "Enter your pin: " Input userpin If (pin userpin) "This is your correct balance: $" print balance else "Please enter your correct pin" void Banking System::withdraw "Enter your pin: " Input userpin If (pin = userpin) "How much do you want to withdraw?" Input Kithin If (Within <- balance) balance within else "You don't have enough balance" else "Please enter correct pin" void BankingSystem::deposit "Enter Your Pin: " Input userpin
Input WithIn
If (Within <= balance)
balance within
else
else
"Please enter correct pin"
void Banking System: :deposit
"Enter Your Pin: "
Input userpin.
If (pin=-userpin)
I
Double DepIn
"How much do you want to deposit?"
Input DepIn
balance DepIn
else
"Please enter your correct pin".
Banking System system.
int selection
while (selection = 6)
"Welcome " system.accname" to north West Bank"
*********SELECT******** "
"1. Create a New Account"
"2. Check Balance"
"3. Withdraw"
"4. Deposit"
"5. Change Pin"
"6. Exit"
"Select a number for the desired action:"
Input selection
switch (selection)
case 1: system.create
break
case 2: system, dispbalance
break
case 3: system, withdraw
break
case 4: system, deposit
break
case 5: system.pinchange
break
case 61 "Thank you for using Northwest Bank!"
"Please come again
default: "Please Pick a valid option"
endl
nt main
return 0
"You don't have enough balance"
Transcribed Image Text:Input WithIn If (Within <= balance) balance within else else "Please enter correct pin" void Banking System: :deposit "Enter Your Pin: " Input userpin. If (pin=-userpin) I Double DepIn "How much do you want to deposit?" Input DepIn balance DepIn else "Please enter your correct pin". Banking System system. int selection while (selection = 6) "Welcome " system.accname" to north West Bank" *********SELECT******** " "1. Create a New Account" "2. Check Balance" "3. Withdraw" "4. Deposit" "5. Change Pin" "6. Exit" "Select a number for the desired action:" Input selection switch (selection) case 1: system.create break case 2: system, dispbalance break case 3: system, withdraw break case 4: system, deposit break case 5: system.pinchange break case 61 "Thank you for using Northwest Bank!" "Please come again default: "Please Pick a valid option" endl nt main return 0 "You don't have enough balance"
Expert Solution
steps

Step by step

Solved in 5 steps

Blurred answer
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