How to expplain this pseudo code?   START Public Class BankingSystem      Declarations           string accname           double balance = 0           int pin, userpin, newpin           void create()           void dispbalance()           void withdraw()           void pinchange()           void deposit() EndClass      void BankingSystem::create            print “Enter Your Name: ”             Cin.ignore             Getline(cin, accname)           print “Enter Your Pin: “             Input user pin      Void BankingSystem::pinchange           print “Input old Pin: “             Input userpin              If (pin == userpin)                     print “Enter new pin: “                     Input newpin                     pin = newpin                      print “Your pin was successfully changed”              Else                   print “Please re-enter old pin”      void BankingSystem::dispbalance           print “Enter your pin: “              Input userpin           If (pin == userpin)                print “This is your correct balance: $”                print balance            else                print “Please enter your correct pin”                         void BankingSystem::withdraw          double WithIn           print “Enter your pin: “               Input userpin              If (pin == userpin)                      print “How much do you want to withdraw?”                     Input WithIn                     If (Within <= balance)                          balance -= within                      else                              print “You don’t have enough balance”               else                     print “Please enter correct pin”      void BankingSystem::deposit          double DepIn           print "Enter Your Pin: "              Input userpin               If (pin==userpin)                print “How much do you want to deposit?”                Input DepIn                balance += DepIn              else                print “Please enter your correct pin”  int main       BankingSystem system      int selection      while (selection != 6)           print “Welcome “ system.accname “ to north West Bank”            print “********SELECT******** "           print “1. Create a New Account”           print “2. Check Balance”           print “3. Withdraw”           print “4. Deposit”           print “5. Change Pin”           print “6. Exit”           print “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 6:                 print “Thank you for using Northwest Bank!”                print “Please come again             default:                 print “Please Pick a valid option"              endl  return 0 END

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

How to expplain this pseudo code?

 

START

Public Class BankingSystem
     Declarations
          string accname
          double balance = 0
          int pin, userpin, newpin
          void create()
          void dispbalance()
          void withdraw()
          void pinchange()
          void deposit()
EndClass

     void BankingSystem::create 
          print “Enter Your Name: ”
            Cin.ignore
            Getline(cin, accname)
          print “Enter Your Pin: “
            Input user pin

     Void BankingSystem::pinchange
          print “Input old Pin: “
            Input userpin
             If (pin == userpin)
                    print “Enter new pin: “
                    Input newpin
                    pin = newpin 
                    print “Your pin was successfully changed”
             Else
                  print “Please re-enter old pin”

     void BankingSystem::dispbalance
          print “Enter your pin: “
             Input userpin
          If (pin == userpin)
               print “This is your correct balance: $”
               print balance 
          else
               print “Please enter your correct pin” 
                 
     void BankingSystem::withdraw
         double WithIn
          print “Enter your pin: “ 
             Input userpin
             If (pin == userpin) 
                    print “How much do you want to withdraw?”
                    Input WithIn
                    If (Within <= balance) 
                        balance -= within 
                    else     
                        print “You don’t have enough balance” 
             else
                    print “Please enter correct pin”

     void BankingSystem::deposit
         double DepIn
          print "Enter Your Pin: "
             Input userpin 
             If (pin==userpin)
               print “How much do you want to deposit?”
               Input DepIn
               balance += DepIn
             else
               print “Please enter your correct pin” 

int main 
     BankingSystem system
     int selection
     while (selection != 6)
          print “Welcome “ system.accname “ to north West Bank” 
          print “********SELECT******** "
          print “1. Create a New Account”
          print “2. Check Balance”
          print “3. Withdraw”
          print “4. Deposit”
          print “5. Change Pin”
          print “6. Exit”
          print “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 6: 
               print “Thank you for using Northwest Bank!”
               print “Please come again
            default: 
               print “Please Pick a valid option" 
            endl 
return 0
END

Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Concept of pointer parameter
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-engineering and related others by exploring similar questions and additional content below.
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