Question

In: Computer Science

Question: PROJECT 2 – ATM MACHINE For this project you will be building an ATM application...

Question: PROJECT 2 – ATM MACHINE For this project you will be building an ATM application that will allow ... PROJECT 2 – ATM MACHINE For this project you will be building an ATM application that will allow users to log in, deposit, withdraw, and check balance. Set a default beginning balance of $1000. I want all monies formatted to currency. Log in Usernames and passwords need to be stored in parallel arrays. At least three logins available for me. The user is allow only 3 attempts at password and it terminates The actual login will also be a method Deposit- must be a method Are they depositing cash, checks, or both (hint looping needed) If checks how many – hint looping After the user is finished with deposit you will show out the total of the deposit and the new balance Withdraw – must be a method After withdraw show amount withdrawn and new balance Check balance Show out current balance The program must loop until the user says they have not more transactions to make. THIS MUST BE IN C# Programming! Please also include the TryParse

Solutions

Expert Solution

  1. class ATM{  
  2.     public static void Main() {  
  3.         int amount = 1000, deposit, withdraw;  
  4.         int choice;  
  5.         Console.WriteLine("Enter Your 4 Digit Pin ");  
  6.         pin = int.Parse(Console.ReadLine());  
  7.         while (true) {  
  8.             Console.WriteLine("WELCOME TO  ATM SERVICE\n");  
  9.             Console.WriteLine("1. Current Balance\n");  
  10.             Console.WriteLine("2. Withdraw \n");  
  11.             Console.WriteLine("3. Deposit \n");  
  12.             Console.WriteLine("4. Cancel \n");  
  13.             Console.WriteLine("***************\n\n");  
  14.             Console.WriteLine("ENTER YOUR CHOICE : ");  
  15.             choice = int.Parse(Console.ReadLine());  
  16.             switch (choice) {  
  17.                 case 1:  
  18.                     Console.WriteLine("\n YOUR CURRENT BALANCE IS Rs : {0} ", amount);  
  19.                     break;  
  20.                 case 2:  
  21.                     Console.WriteLine("\n ENTER THE WITHDRAW AMOUNT : ");  
  22.                     withdraw = int.Parse(Console.ReadLine());  
  23.                     if (withdraw % 100 != 0) {  
  24.                         Console.WriteLine("\n PLEASE ENTER THE AMOUNT IN ABOVE 100");  
  25.                     } else if (withdraw > (amount - 1000)) {  
  26.                         Console.WriteLine("\n SORRY! INSUFFICENT BALANCE");  
  27.                     } else {  
  28.                         amount = amount - withdraw;  
  29.                         Console.WriteLine("\n\n PLEASE COLLECT YOUR CASH");  
  30.                         Console.WriteLine("\n CURRENT BALANCE IS Rs : ", amount);  
  31.                     }  
  32.                     break;  
  33.                 case 3:  
  34.                  Console.WriteLine("\n THANK YOU…”);  
  35.                         break;  
  36.                     }  
  37.             }  
  38.             Console.WriteLine("\n\n THANKS FOR USING YES ATM SERVICE");  
  39.         }  
  40.     }  

Related Solutions

Make a Console application Language should be Visual Basic You will be simulating an ATM machine...
Make a Console application Language should be Visual Basic You will be simulating an ATM machine as much as possible Pretend you have an initial deposit of 1000.00. You will Prompt the user with a Main menu: Enter 1 to deposit Enter 2 to Withdraw Enter 3 to Print Balance Enter 4 to quit When the user enters 1 in the main menu, your program will prompt the user to enter the deposit amount. If the user enter more than...
Practice Coding Task C++ ATM Machine with Some Classes Create an ATM machine in C++ with...
Practice Coding Task C++ ATM Machine with Some Classes Create an ATM machine in C++ with a few classes. Requirements: Automated Teller Machine (ATM) simulationGiven 3 trials, the user is able to see his balance by entering a four-digit pin that must NEVER be displayed on screen but masked by the Asterix (*) character. A list of pins stored on the file system must be loaded to verify the pin. The user should be able to withdrawfundsbelow a set limit...
You are the client of a proposed commercial building project which will involve two [2] contractors....
You are the client of a proposed commercial building project which will involve two [2] contractors. The project is expected to be started on June 1, 2020 and to be completed on July 8, 2020. Twenty (20) workers will be involved in the project. Are you required to notify the Health & Safety Executive? Justify your answer. note write by computer
QUESTION 2 You are developing an online quiz web application and you have been asked to...
QUESTION 2 You are developing an online quiz web application and you have been asked to design a JSON file for creating a TestBank. You need to design the JSON file for storing some multiple choice questions/answers. Here is an example of sample data which you need to convert it into JSON Q) 5 + 7 * 2 = ? a) 14 b) 12 c) 24 d) 19 ANS: d Answer the following questions: 1) How do you design the...
You will write a program using Python that simulates an Automatic Teller Machine (ATM). For this...
You will write a program using Python that simulates an Automatic Teller Machine (ATM). For this program, your code can have user defined functions (but not required), the program must not call on any external functions or modules to handle any of the input, computational, and output requirements. Requirements: There is a customer with the following credential and can only access the system if the Access Code is correct: • Name: Peter Parker, Access Code: 2222 • When the program...
Project 8-2: Person Manager Create an application that lets you enter a new customer or a...
Project 8-2: Person Manager Create an application that lets you enter a new customer or a new employee. Create a class named Person with these constructors and methods: public Person(String first, String last) public String getFirstName() public void setFirstName(String first) public String getLastName() public void setLastName() The Person class should override the toString() method so it returns the first name and last name in this format: Name: Frank Jones Create a class named Customer that inherits the Person class and...
Create an application to simulate a bank ATM and you must combine graphical interfaces using Swing...
Create an application to simulate a bank ATM and you must combine graphical interfaces using Swing or AWT and relational databases. We will have a Bank Accounts database. Each account will have an account number, the name of the owner and the account balance. The program must allow the following options: a) Create an account: request the account information and save it in the database. b) Enter the ATM: it will allow you to request the account number and will...
Constructing Data Flow Diagrams: ATM Machine To start an ATM Withdrawal: • A card is inserted...
Constructing Data Flow Diagrams: ATM Machine To start an ATM Withdrawal: • A card is inserted in the slot by the user, and the PIN (personal identification number) is entered. • The ATM reads information from the card, in particular, the card number and the expiry date, and accepts the PIN from the keyboard input. • The card is verified for expiry date, and then if valid, the card number and the PIN are sent to the bank for card...
You are considering a luxury apartment building project that requires an investment of $10,200,000. The building...
You are considering a luxury apartment building project that requires an investment of $10,200,000. The building has 50 units. You expect the maintenance cost for the apartment building to be $350,000 the first year and $400,000 the second year. The maintenance cost will continue to increase by $50,000 in subsequent years. The cost to hire a manager for the building is estimated to be $82,000 per year. After five years of operation, the apartment building can be sold for $12,000,000....
You are considering a luxury apartment building project that requires an investment of $1,300,000. The building...
You are considering a luxury apartment building project that requires an investment of $1,300,000. The building has 50 unites. We expect that the maintenance cost for the apartment building will be $150,000 in the first year, and to rise to $200,000 in the second year, and to continue to increase by $50,000 in subsequent years. The cost to hire a manager for the building is estimate to be $50,000 per year. After five years of operation, the apartment building can...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT