JAVA PROGRAMMING
ATM machine:
Create a program to simulate an ATM machine. In this program amain menu will be displayed, giving the users the followingoptions:
Check balance
Withdraw
Deposit
Exit
Based on the user’s choice your program should display theinformation. Note: A data file data.txt has been provided.
Here are the classes that needs to be implement:
1. Create a class called Account with the following UML diagram.Compile your cod
Account
-int id //default 0
-String name //default “”
-double balance // default 0
-boolean active //set to false by default
+Account() //sets all the instance variables to the defaultvalues
+Account (int id, double balance, String name)//creates an accountwith the given info +getId(): id
+getBalance(): balance// returns
PayPal Gateway not configured
PayPal Gateway not configured