/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package tw.edu.npu.mis;

/**
 * The model class of the calculator application.
 */
public class Calculator {
    
    /**
     * The available operators of the calculator.
     */
    public enum Operator {
        EQUAL,       // =
        PLUS,        // +
        MINUS,       // -
        TIMES,       // ×
        OVER,        // ⁄
        PLUS_MINUS,  // ±
        RECIPROCAL,  // 1/x
        PERCENT,     // %
        SQRT,        // √
        BACKSPACE,   // ⌫
        CLEAR,       // C
        CLEAR_ENTRY, // CE
        MEM_SET,     // MS
        MEM_PLUS,    // M+
        MEM_MINUS,   // M-
        MEM_RECALL,  // MR
        MEM_CLEAR    // MC
    }
    
    public void appendDigit(int digit) {
        // TODO code application logic here
    }
    
    public void appendDot() {
        // TODO code application logic here
    }
    
    public void performOperation(Operator operator) {
        // TODO code application logic here
    }
    
    public String getDisplay() {
        // TODO code application logic here
        return null;
    }

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // TODO code application logic here
    }

}

@@ -381,24 +381,103 @@
  Operator %7B%0A
+        CLEAR,       // C%0A        CLEAR_ENTRY, // CE%0A        BACKSPACE,   // %E2%8C%AB%0A
         EQUA
@@ -712,34 +712,12 @@
     
-BACKSPACE,   // %E2%8C%AB%0A        
+MEM_
 CLEA
@@ -725,43 +725,13 @@
 ,   
-  
-  
 // 
+M
 C
-%0A        CLEAR_ENTRY, // CE
 %0A   
@@ -830,17 +830,17 @@
 CALL
-,
+ 
   // MR%0A
     
@@ -839,35 +839,8 @@
  MR%0A
-        MEM_CLEAR    // MC%0A
     

Revert "Revert "Revert "Revert "Reorder operator""""