|
@@ -0,0 +1,34 @@
|
|
1
|
+
|
|
2
|
+/**
|
|
3
|
+ * 4.2 Scientific Calculator Group Project
|
|
4
|
+ * Advanced Calculator Menu
|
|
5
|
+ */
|
|
6
|
+public class AdvCalc
|
|
7
|
+{
|
|
8
|
+ // instance variables - replace the example below with your own
|
|
9
|
+ private int x;
|
|
10
|
+
|
|
11
|
+ /**
|
|
12
|
+ * Switch Display Mode method
|
|
13
|
+ * -> binary, octal, decimal, hexadecimal
|
|
14
|
+ * switchDisplayMode() rotates through the options
|
|
15
|
+ * switchDisplayMode(String mode) sets the display to the mode given
|
|
16
|
+ */
|
|
17
|
+ public int switchDisplay(int y)
|
|
18
|
+ {
|
|
19
|
+ // put your code here
|
|
20
|
+ return x + y;
|
|
21
|
+ }
|
|
22
|
+
|
|
23
|
+ /**
|
|
24
|
+ * Store 1 numeric value in memory for recall later
|
|
25
|
+ * M+ = add currently displayed value to the value in memorie (default = 0)
|
|
26
|
+ * MC = reset memory
|
|
27
|
+ * MRC = recall current valie from memory to display
|
|
28
|
+ */
|
|
29
|
+ public void memory()
|
|
30
|
+ {
|
|
31
|
+ // put your code here
|
|
32
|
+
|
|
33
|
+ }
|
|
34
|
+}
|