|
@@ -0,0 +1,40 @@
|
|
1
|
+
|
|
2
|
+/**
|
|
3
|
+ * Scientific Calculator Lab
|
|
4
|
+ *
|
|
5
|
+ * This class will create the instance of the "Main Menu"
|
|
6
|
+ *
|
|
7
|
+ * This serves to display the options the user can take to use the calculator
|
|
8
|
+ *
|
|
9
|
+ * 1: Basic Menu - 4 basic functions + - * /
|
|
10
|
+ * 2: Advanced Menu - Exponents & inverse
|
|
11
|
+ * 3: Scientific Menu - Base Conversions, Memory Functions, Trig Options
|
|
12
|
+ *
|
|
13
|
+ * The point of this method is for the MAIN Application while loop.
|
|
14
|
+ * Whenever the user opens the calculator OR completes an action
|
|
15
|
+ * in the submenus, the calculator will return to this main menu.
|
|
16
|
+ */
|
|
17
|
+public class MainMenu
|
|
18
|
+{
|
|
19
|
+ // instance variables - replace the example below with your own
|
|
20
|
+ private int x;
|
|
21
|
+
|
|
22
|
+ /**
|
|
23
|
+ * Constructor for objects of class MainMenu
|
|
24
|
+ */
|
|
25
|
+ public MainMenu()
|
|
26
|
+ {
|
|
27
|
+ // initialise instance variables
|
|
28
|
+ x = 0;
|
|
29
|
+ }
|
|
30
|
+
|
|
31
|
+ /**
|
|
32
|
+ * Method to display the main menu
|
|
33
|
+ */
|
|
34
|
+
|
|
35
|
+ public void mainMenuDisplay()
|
|
36
|
+ {
|
|
37
|
+ // put your code here
|
|
38
|
+
|
|
39
|
+ }
|
|
40
|
+}
|