-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfoodBot.java
More file actions
82 lines (65 loc) · 2.12 KB
/
Copy pathfoodBot.java
File metadata and controls
82 lines (65 loc) · 2.12 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
package org.vashonsd;
public class foodBot {
private String course1;
private String course2;
private String course3;
private String waiter;
private String insult;
public foodBot(String type) {
if(type.equalsIgnoreCase("Mexican")) {
course1 = "Quesadilla";
course2 = "Sopa de Tortilla";
course3 = "Leche de Chocolate";
waiter = "John";
insult = "damn";
} else if(type.equalsIgnoreCase("Japanese")) {
course1 = "Miso Soup";
course2 = "Edamame";
course3 = "Sushi";
waiter = "James";
insult = "curse";
} else if(type.equalsIgnoreCase("Canadian")) {
course1 = "Maple Syrup";
course2 = "Canadian Bacon Pizza";
course3 = "Tim Hortons Coffee";
waiter = "Sammy";
insult = "screw";
} else if(type.equalsIgnoreCase("Thai")) {
course1 = "Thai coffee";
course2 = "Phad Thai";
course3 = "Red Curry";
waiter = "Johnny";
insult = "frick";
} else if(type.equalsIgnoreCase("American")) {
course1 = "Milkshake";
course2 = "In and Out";
course3 = "Steak";
waiter = "Sean";
insult = "flap";
} else if(type.equalsIgnoreCase("Human")) {
course1 = "Arms";
course2 = "Brain";
course3 = "Fingers";
waiter = "Robert";
insult = "eat";
} else {
course1 = "Water";
course2 = "Water";
course3 = "Water";
waiter = "none of your business";
insult = "whatever";
}
}
public String getGreeting() {
return "Hey my name is "+waiter+". What kind of food would you like?";
}
public String getCourse() {
return "Here is your "+course1+" and your "+course2+" and your last meal is "+course3;
}
public String getCheck() {
return "Here is your check, " + insult + " you.";
}
public String toString() {
return course1;
}
}