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

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 a valid file name: data.txt
Enter your ID: 3434
Enter your ID: eert
Invalid ID. Enter your ID: ddf
Invalid ID. Enter your ID: 3456
Enter your ID: 123456
Main menu
1: check balance
2: withdraw
3: deposit
4: exit
Enter a choice: 1
here is your account info
Alex Lambardi
ID: 123456
Balance:12000.0
Active account
---------------
Main menu
1: check balance
2: withdraw
3: deposit
4: exit
Enter a choice: 2
Enter a positive amont: dfdf
Enter a valid amount: -5678
Enter a positive amont: 100
100 has been withdrawn from your account
Main menu
1: check balance
2: withdraw
3: deposit
4: exit
Enter a choice: 1
here is your account info
Alex Lambardi
ID: 123456
Balance:11900.0
Active account
---------------
Main menu
1: check balance
2: withdraw
3: deposit
4: exit
Enter a choice: 3
Enter a positive amont: tytyu
Enter a valid amount: fgh
Enter a valid amount: -6789
Enter a positive amont: 340
340 has been deposited to your account
Main menu
1: check balance
2: withdraw
3: deposit
4: exit
Enter a choice: 1
here is your account info
Alex Lambardi
ID: 123456
Balance:12240.0
Active account
---------------
Main menu
1: check balance
2: withdraw
3: deposit
4: exit
Enter a choice: 8
Wrong choice, try again:
Main menu
1: check balance
2: withdraw
3: deposit
4: exit
Enter a choice: 9
Wrong choice, try again:
Main menu
1: check balance
2: withdraw
3: deposit
4: exit
Enter a choice: 4
Is there any one else in the line? yes
Enter your ID: dfdf
Invalid ID. Enter your ID: 345678
Main menu
1: check balance
2: withdraw
3: deposit
4: exit
Enter a choice: 1
here is your account info
Mary Busta
ID: 345678
Balance:1500.0
Active account
---------------
Main menu
1: check balance
2: withdraw
3: deposit
4: exit
Enter a choice: 2
Enter a positive amont: 2000
The amount is too large, transaction ignored
Main menu
1: check balance
2: withdraw
3: deposit
4: exit
Enter a choice: 100
Wrong choice, try again:
Main menu
1: check balance
2: withdraw
3: deposit
4: exit
Enter a choice: 3
Enter a positive amont: -5678
Enter a positive amont: ffgf
Enter a valid amount: dfg
Enter a valid amount: 1200
1200 has been deposited to your account
Main menu
1: check balance
2: withdraw
3: deposit
4: exit
Enter a choice: 1
here is your account info
Mary Busta
ID: 345678
Balance:2700.0
Active account
---------------
Main menu
1: check balance
2: withdraw
3: deposit
4: exit
Enter a choice: 89
Wrong choice, try again:
Main menu
1: check balance
2: withdraw
3: deposit
4: exit
Enter a choice: 4
Is there any one else in the line? no
Have a good day
 This is what the output should be. Enter the file name:
sdfsdf File not found. Enter a valid file name: sddsf File not

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

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!