|
@@ -21,6 +21,7 @@ public class Operations
|
21
|
21
|
scienticFunctions ScientificFunctions = new scienticFunctions();
|
22
|
22
|
Memory memory = new Memory();
|
23
|
23
|
DiplayMode displayMode = new DiplayMode();
|
|
24
|
+ bonusFunctions bonusFunctions = new bonusFunctions();
|
24
|
25
|
// Calculator calc = new ....
|
25
|
26
|
while (true) {
|
26
|
27
|
System.out.print("Enter a command: ");
|
|
@@ -69,6 +70,15 @@ public class Operations
|
69
|
70
|
displayMode.switchDisplayMode(mode);
|
70
|
71
|
|
71
|
72
|
}
|
|
73
|
+ if (command.equalsIgnoreCase("log")){
|
|
74
|
+ Console.printResult(bonusFunctions.LogBaseTenOfAnumber(result));
|
|
75
|
+ }
|
|
76
|
+ if (command.equalsIgnoreCase("ln")){
|
|
77
|
+ Console.printResult(bonusFunctions.naturalLogLn(result));
|
|
78
|
+ }
|
|
79
|
+ if (command.equalsIgnoreCase("ex")){
|
|
80
|
+ Console.printResult(bonusFunctions.exponential(result));
|
|
81
|
+ }
|
72
|
82
|
//firstNumber = result;
|
73
|
83
|
// and on and on
|
74
|
84
|
}
|