Java Assignment, you will write a subclass of the MemoryCalc class. This new calculator called ScientificMemCalc,should be able to do every thing that the MemoryCalc could do plusraise the current value to a power and compute the natural logarithof the current value. You will need to override the displayMenu method to add the new options. Be sure to only addcode to the ScientificMemCalc class if it is necessary.Leverage the code from the base MemoryCalc class wheneverpossible. Use the power of inheritance to do this ratherthan cutting or pasting or otherwise duplicating the code.Finally, write a new class calledScientificCalcDriver that shows
PayPal Gateway not configured
PayPal Gateway not configured