title: using methods and constructors to construct a basic calculator in java
body: <p>I want to come up with a simple basic calculator but am supposed to work with the following constructors and methods</p>
  
  <pre><code>simpleCalc();
  simpleCalc(double op1, double op2);
  double add();
  double add(double op1, double op2);
  double mult();
  double mult(double op1, double op2);
  double exp();
  double exp(double op1, double op2);
  void show();
  void show(int dp);
  </code></pre>
  
  <p>The methods should do the following: The constructors, simpleCalc, should initialize
  the calculator with the operands (if provided – otherwise, it initializes to 0 and 1
  respectively); add should perform the addition operation on the operands (provided), store
  and return the result; mult should perform the multiplication operation on the operands
  (provided), store and return the result; exp should perform the operation of exponentiation
  on the operands (op1^op2), store and also return the result; show should print out the current
  result in the calculator correct to the given number of decimal places (default: 2dp).</p>
  
  <p>Any idea on how to implement it</p>