Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Write a windows console application in C++ that simulates an Automated Teller Ma

ID: 3790808 • Letter: W

Question

Write a windows console application in C++ that simulates an Automated Teller Machine (ATM) menu similar to the following (this program assumes you are uniquely logged in).

     Welcome to the DeVry Bank Automated Teller Machine

Check balance

Make withdrawal

Make deposit

View account information

View statement

View bank information

Exit

   

     The result of choosing #1 will be the following:
          Current balance is: $2439.45

    The result of choosing #2 will be the following:
          How much would you like to withdraw? $200.50

     The result of choosing #3 will be the following:
          How much would you like to deposit? $177.32     

     The result of choosing #4 will be the following:

          Name: (Student’s first and last name goes here)

          Account Number: 1234554321

    The result of choosing #5 will be the following:
          01/01/11 - McDonald’s - $6.27

          01/15/11 - Kwik Trip - $34.93

          02/28/11 - Target - $124.21

     The result of choosing #6 will be the following:
          Devry Bank, established 2011

          (123) 456-7890

          12345 1st St.

          Someplace, NJ 12345

     The result of choosing #7 will be the following:
          *Exit the program - terminate console application.

Step 2: Processing Logic


You will create a Menu Builder class (for menu applications), a Test Menu class (for Main), and a MenuBuilder.h for a total of three files as a demonstration of understanding, creating, and using classes.

Using the pseudocode below, write the code that will meet the requirements.

Create a Test Menu class

      For main method and to call the Menu Driven class

Create a MenuBuilder Class

         This will be where you create statements for the following:

1. Check balance

2. Make withdrawal

3. Make deposit

4. View account information

5. View statement

6. View bank information

7. Exit

Create a MenuBuilder.h

Include a header file in your program.

This will be where you utilize standardized Identifiers,
preprocessor directives, classes, namespaces, and so forth.

Write a windows console application in C++ that simulates an Automated Teller Machine (ATM) menu similar to the following (this program assumes you are uniquely logged in).

     Welcome to the DeVry Bank Automated Teller Machine

Check balance

Make withdrawal

Make deposit

View account information

View statement

View bank information

Exit

   

     The result of choosing #1 will be the following:
          Current balance is: $2439.45

    The result of choosing #2 will be the following:
          How much would you like to withdraw? $200.50

     The result of choosing #3 will be the following:
          How much would you like to deposit? $177.32     

     The result of choosing #4 will be the following:

          Name: (Student’s first and last name goes here)

          Account Number: 1234554321

    The result of choosing #5 will be the following:
          01/01/11 - McDonald’s - $6.27

          01/15/11 - Kwik Trip - $34.93

          02/28/11 - Target - $124.21

     The result of choosing #6 will be the following:
          Devry Bank, established 2011

          (123) 456-7890

          12345 1st St.

          Someplace, NJ 12345

     The result of choosing #7 will be the following:
          *Exit the program - terminate console application.

Step 2: Processing Logic


You will create a Menu Builder class (for menu applications), a Test Menu class (for Main), and a MenuBuilder.h for a total of three files as a demonstration of understanding, creating, and using classes.

Using the pseudocode below, write the code that will meet the requirements.

Create a Test Menu class

      For main method and to call the Menu Driven class

Create a MenuBuilder Class

         This will be where you create statements for the following:

1. Check balance

2. Make withdrawal

3. Make deposit

4. View account information

5. View statement

6. View bank information

7. Exit

Create a MenuBuilder.h

Include a header file in your program.

This will be where you utilize standardized Identifiers,
preprocessor directives, classes, namespaces, and so forth.

Explanation / Answer

#include unsigned long amount=1000, deposit, withdraw; int choice, pin, k; char transaction ='y'; void main() { while (pin != 1520) { printf("ENTER YOUR SECRET PIN NUMBER:"); scanf("%d", &pin); if (pin != 1520) printf("PLEASE ENTER VALID PASSWORD "); } do { printf("********Welcome to ATM Service************** "); printf("1. Check Balance "); printf("2. Withdraw Cash "); printf("3. Deposit Cash "); printf("4. Quit "); printf("******************?**************************?* "); printf("Enter your choice: "); scanf("%d", &choice); switch (choice) { case 1: printf(" YOUR BALANCE IN Rs : %lu ", amount); break; case 2: printf(" ENTER THE AMOUNT TO WITHDRAW: "); scanf("%lu", &withdraw); if (withdraw % 100 != 0) { printf(" PLEASE ENTER THE AMOUNT IN MULTIPLES OF 100"); } else if (withdraw >(amount - 500)) { printf(" INSUFFICENT BALANCE"); } else { amount = amount - withdraw; printf(" PLEASE COLLECT CASH"); printf(" YOUR CURRENT BALANCE IS%lu", amount); } break; case 3: printf(" ENTER THE AMOUNT TO DEPOSIT"); scanf("%lu", &deposit); amount = amount + deposit; printf("YOUR BALANCE IS %lu", amount); break; case 4: printf(" THANK U USING ATM"); break; default: printf(" INVALID CHOICE"); } printf(" DO U WISH TO HAVE ANOTHER TRANSCATION?(y/n): "); fflush(stdin); scanf("%c", &transaction); if (transaction == 'n'|| transaction == 'N') k = 1; } while (!k); printf(" THANKS FOR USING OUT ATM SERVICE"); }
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote