Question: This is what the output should be. Enter the file name: sdfsdf File not found. Enter a valid file name: sddsf File not found. Enter
ATM machine: Create a program to simulate an ATM machine, In this the users the following options: program a main menu will be displayed, giving 1. Check balance 2. Withdraw 3. Deposit Based on the user's choice your program should display the information. 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 code Account int id //default 0 -String name //default -double balance // default O -boolean active//set to false by default +Account) I/sets all the instance variables to the default values +Account (int id, double balance, String name)//creates an account with the given info getid): id getBalance0: balance// returns the balance +getName(): name setidfint id): void setName(String name]: void "setActive(boolean b): void +setBalance(double b): void +activateAccount): void // sets the active variabie to true deactivateAccount(): void//set the active variable to false close): void// this method closes the account by withdrawing all the money, and deactivates the apcount deposit(double amount): void//deposit the given amount to the balance +withdraw double amount): void//withdraw the amount from the balance, check to see if amount
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
