-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathATMTester.java
More file actions
57 lines (43 loc) · 1.86 KB
/
ATMTester.java
File metadata and controls
57 lines (43 loc) · 1.86 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
import java.util.HashMap;
import java.util.Scanner;
import java.io.*;
public class ATMTester {
public static void main(String[] args) throws FileNotFoundException {
ATM theBank = new ATM();
String email1 = "baribl1620@gmail.com";
String email2 = "ohuang1@hwemail.com";
String email3 = "amilburn1@hwemail.com";
String email4 = "dhernandez1@hwemail.com";
String email5 = "rmalhorta1@hwemail.com";
String email6 = "burner";
theBank.openAccount(email1, 100);
theBank.openAccount(email1, 50);
theBank.openAccount(email2, 0);
theBank.openAccount(email2, 80);
theBank.openAccount(email3, 80);
theBank.openAccount(email4, 80);
theBank.openAccount(email5, 80);
theBank.closeAccount(email1);
theBank.withdrawMoney(email1, 150);
theBank.withdrawMoney(email1, 90);
theBank.closeAccount(email1);
theBank.withdrawMoney(email1, 10);
theBank.closeAccount(email1);
theBank.withdrawMoney(email6, 50);
System.out.println(theBank.checkBalance(email2));
System.out.println(theBank.checkBalance(email6));
System.out.println(theBank.depositMoney(email2, 10));
System.out.println(theBank.checkBalance(email4));
System.out.println(theBank.checkBalance(email5));
System.out.println(theBank.transferMoney(email4, email5, 10));
System.out.println(theBank.checkBalance(email4));
System.out.println(theBank.checkBalance(email5));
System.out.println(theBank.transferMoney(email4, email5, 0));
System.out.println(theBank.transferMoney(email4, email5, 1000));
System.out.println(theBank.transferMoney("email4", email5, 10));
theBank.audit();
theBank.openAccount(email6, 180);
theBank.audit();
System.out.println("WWW BANK");
}
}