|
@@ -80,13 +80,16 @@ public class MainApplication {
|
80
|
80
|
display = (double)Math.acos(display);
|
81
|
81
|
}
|
82
|
82
|
if(operator.equalsIgnoreCase("M+")){
|
83
|
|
- ScientificFunctions.setMem(display);
|
|
83
|
+ System.out.println("Memory Added");
|
|
84
|
+ ScientificFunctions.memory=display;
|
84
|
85
|
}
|
85
|
86
|
if(operator.equalsIgnoreCase("MC")){
|
86
|
|
- ScientificFunctions.resetMem();
|
|
87
|
+ System.out.println("Memory Cleared");
|
|
88
|
+ ScientificFunctions.memory=0;
|
87
|
89
|
}
|
88
|
90
|
if(operator.equalsIgnoreCase("MRC")){
|
89
|
|
- ScientificFunctions.recallMem();
|
|
91
|
+ System.out.println("Memory Recalled!");
|
|
92
|
+ display = ScientificFunctions.memory;
|
90
|
93
|
}
|
91
|
94
|
if(operator.equalsIgnoreCase("clear")){
|
92
|
95
|
System.out.print('\u000C');
|