|
@@ -1,58 +0,0 @@
|
1
|
|
-
|
2
|
|
-/**
|
3
|
|
-* Scientific Calculator Lab
|
4
|
|
-* Advanced Calculator Scientific Menu Options
|
5
|
|
-*/
|
6
|
|
-public class Adv
|
7
|
|
-{
|
8
|
|
- // instance variables - replace the example below with your own
|
9
|
|
- private int memory = 0;
|
10
|
|
-
|
11
|
|
-
|
12
|
|
- /**
|
13
|
|
- * switch display mode
|
14
|
|
- * - Binary
|
15
|
|
- * - Octal
|
16
|
|
- * - Decimal
|
17
|
|
- * - Hexadecimal
|
18
|
|
- */
|
19
|
|
- public int sampleMethod(int y)
|
20
|
|
- {
|
21
|
|
- // Base Mode
|
22
|
|
- Console.println("Base Mode");
|
23
|
|
- // Ask for input
|
24
|
|
- Integer i = Console.getIntegerInput("Enter an integer");
|
25
|
|
- // Display base options
|
26
|
|
- // Ask for base option input
|
27
|
|
-
|
28
|
|
- return 2;
|
29
|
|
- }
|
30
|
|
-
|
31
|
|
- /**
|
32
|
|
- *
|
33
|
|
- * Memory Mode
|
34
|
|
- * M+ = add currently displaced value to the value in memory default 0
|
35
|
|
- * MC = clear memory
|
36
|
|
- * MCR = display memory
|
37
|
|
- *
|
38
|
|
- */
|
39
|
|
- public void memory()
|
40
|
|
- {
|
41
|
|
- // Memory Mode
|
42
|
|
- // Ask for input
|
43
|
|
- // Display memory menu
|
44
|
|
- // memory option input, if statement
|
45
|
|
- }
|
46
|
|
-
|
47
|
|
- /**
|
48
|
|
- * switch display mode
|
49
|
|
- * - Binary
|
50
|
|
- * - Octal
|
51
|
|
- * - Decimal
|
52
|
|
- * - Hexadecimal
|
53
|
|
- */
|
54
|
|
- public void toTrig(int y)
|
55
|
|
- {
|
56
|
|
- //calls to the trig menu
|
57
|
|
- }
|
58
|
|
-}
|