You will write a subclass of the Memory Calc class. This new calculator called ScientificMemCalc, should be able to do every thing that the MemoryCalc could do plus raise the current value to a power and compute the natural logarith of the current value. You will need to override the display Menu method to add the new options. Be sure to only add code to the ScientificMemCalc class if it is necessary. Leverage the code from the base MemoryCalc class whenever possible. Use the power of inheritance to do this rather than cutting or pasting or otherwise duplicating the code. Finally, write a new class called ScientificCalcDriver that shows the functionality of your new class.
You'll get 1 file (7.0KB)