|
@@ -19,7 +19,7 @@ public static double memory = 0;
|
19
|
19
|
|
20
|
20
|
if (toDo.equals("quit")){
|
21
|
21
|
off = true;
|
22
|
|
- System.out.println("Goodbye!!");
|
|
22
|
+ System.out.println("Goodbye!! \n \n");
|
23
|
23
|
|
24
|
24
|
} else {
|
25
|
25
|
switch (toDo) {
|
|
@@ -155,6 +155,13 @@ public static double memory = 0;
|
155
|
155
|
calc.printAns(calc.switchDisplayMode());
|
156
|
156
|
break;
|
157
|
157
|
|
|
158
|
+ case "random number":
|
|
159
|
+ result = calc.randomNumber();
|
|
160
|
+ memory = result;
|
|
161
|
+ calc.printAns(String.valueOf(result));
|
|
162
|
+ break;
|
|
163
|
+
|
|
164
|
+
|
158
|
165
|
|
159
|
166
|
}
|
160
|
167
|
}
|