public Calculator()
 {
     arithmeticUnit = new ArithmeticUnit();
     controlUnit    = new ControlUnit();
 }
Exemple #2
0
 public Divide(ArithmeticUnit unit, double operand)
 {
     this.unit    = unit;
     this.operand = operand;
 }
Exemple #3
0
 public Div(ArithmeticUnit unit, int operand)
 {
     this.unit    = unit;
     this.operand = operand;
 }
Exemple #4
0
 public Mult(ArithmeticUnit unit, double operand)
 {
     this.unit    = unit;
     this.operand = operand;
 }
Exemple #5
0
 public Calculator()
 {
     this.arithmeticUnit = new ArithmeticUnit();
     this.controlUnit    = new ControlUnit();
 }
Exemple #6
0
 public Div(ArithmeticUnit arithmeticUnit, int operand)
 {
     this.arithmeticUnit = arithmeticUnit;
     this.operand        = operand;
 }
Exemple #7
0
 public Calculator()
 {
     cUnit = new ControleUnit();
     aUnit = new ArithmeticUnit();
 }