Question: Java ATM Machine: Create a program to simulate an ATM machine. In this program a main menu will be displayed, giving the users the following

Java ATM Machine: Create a program to simulate an ATM machine. In this program a main menu will be displayed, giving the users the following options:

1.Check Balance

2.Withdraw

3.Deposit

4.Exit

Java ATM Machine: Create a program to simulate an ATM machine. Inthis program a main menu will be displayed, giving the users thefollowing options: 1.Check Balance 2.Withdraw 3.Deposit 4.Exit Data.txt file: Alex Lambardi 123456

Data.txt file:

Alex Lambardi 123456 12000

Mary Busta 345678 1500

Tia Yang 907856 12350

Alex Bogdan 452367 560

Joe William 122143 1000

Jack zhang 985634 20000

Rose Bever 887766 200

Josh Li 455548 12000

Nik Patten 128956 54000

Jack Liang 450089 2300

sample output: 12000 Mary Busta 345678 1500 Tia Yang 907856 12350 Alex Bogdan 452367

CSC 15 Project #4 ATM machine Create a program to simulate an ATM machine. In this program a main menu will be displayed, giving the users the following options 1. Check balance 2. Withdraw 3. Deposit 4. Exit Based on the user's choice your program should display the information. Note: You must use break, or continue to end a loop or to start the new iteration of your loop A data file data.txt has been provided 1. 2. Here are the classes that needs to be implement: 1. Create a class called Account with the following UML diagram. Compile your code Account int id //default 0 String name//default -double balance//default 0 -double annuallnterestRate//default 0 Date dateCreated// stores the date when the account was created -boolean active //set to false by default Account /sets all the instance variables to the default values +Account (int id, double balance, double annuallnterestRate, String name)//creates an account with the given info +getld) d +setActive(boolean b)//once the account is closed we set this to false +activeAccount)// sets the active variable to true +deactiveAccount(//set the active variable to false +getRate(): returns the annual interestRate +getDate(): Dtae// returns the date the account was created +getBalance(): balance// returns the balance +getMonthlylntrestRate): return the monthly interest rate +setld(int id) void +setName(String name: void getName(: name close(): this method closes the account by withdrawing all the money, and deactivates the account +setBalance(double b): void//reset the balance to the given amount, must check b>0 +setAnnuallnterestRate(double rate); void // must check rate >0 +deposit(double amount): void//deposit the given amount to the balance +withdraw(double amount);void//withdraw the amount from the balance, ceck to see if amount 0 +setAnnuallnterestRate(double rate); void // must check rate >0 +deposit(double amount): void//deposit the given amount to the balance +withdraw(double amount);void//withdraw the amount from the balance, ceck to see if amount

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!