-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathUserMenu.java
More file actions
65 lines (59 loc) · 1.9 KB
/
Copy pathUserMenu.java
File metadata and controls
65 lines (59 loc) · 1.9 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
58
59
60
61
62
63
64
65
import java.util.Scanner;
import java.io.*;
public class UserMenu{
public static void main(String[] args) throws IOException{
PrintBankIntro();
BankLocations.blmain();
Scanner input = new Scanner(System.in);
int choice = 0;
System.out.println("Welcome to the " + BankLocations.bankname + "!");
System.out.println("What would you like to do?");
do{
System.out.println("1. Visit Bank Website\n2. Use ATM");
System.out.print("Enter Choice: ");
choice = input.nextInt();
System.out.println("--------------------");
}
while(choice < 0 || choice > 2);
if(choice == 1){
CustomerClass.menu();
}
else{
ATM.access();
}
}
public static void PrintBankIntro() {
System.out.println("Hello! Welcome to Vito Cangerizzi Bank!");
System.out.println("--------------------");
System.out.println("Voted most trusted bank of New Jesery since 2023!");
for (int i = 0; i < 12; i++ )
{
for (int v = 0; v < 28; v++)
{
if (i > 0 && (v == 23 - i || v == i - 1))
{
System.out.print("$$");
continue;
}
System.out.print(" ");
}
for (int c = 1; c < 22; c++)
{
if (i > 0 && (i == 1 || i == 11) && c <= 16)
{
System.out.print("$");
}
else
{
System.out.print("");
}
if (c == 1 && i != 0)
{
System.out.print("$$");
}
}
System.out.println();
}
System.out.println("\n");
}
}