Design a class called SimpleCalculator using psudoecode that contains public methods named add(),

subtract(). Each of the methods accepts two numeric arguments and returns a number that represents the
result of the appropriate arithmetic operation.
Design a sub-class of SimpleCalculator called Calculator using psudoecode that contains public methods
named multiply(), and divide() and that defines private fields called num1 and num2. Each of the methods
accepts two numeric arguments and returns a number that represents the result of the appropriate arethmetic
operation. Design a two-arg constructor Calculator() that sets the two values num1 and num2. Design a main()
method that prompts the user for two numbers and reads them in. Then creates an instance of the Calculator
class setting the input values via the Calculator constructor. The main() method then tries each of the four
arithmetic methods. Assume that an DivideByZero is created and thrown if the user attempts to divide by 0.
Display an appropriate message when an exception is caught. If no exception, display the results from each
arithmetic method call.

classSimpleCalculator
//Declarations
private num num1
private num num2
public void add(num1,num2)
num1+num2=sum
output "Result is:", sum
return
public void subtract(num1, num2)
num1-num2=difference
output "Result is:", difference
return
endClass
class Calculator inheritsFrom SimpleCalculator
//Declarations
private num num1
private num num2
public void multiply(num1, num2)
num1*num2=product
output "Result is:", product
return
public void divide(num1, num2)
if num2=0
output "Cannot divide by zero."
else
num1/num2=quotient
output "Result is:, quotient
return
endClass

Here is the pseudocode for the requested classes:

```
class SimpleCalculator
// Declarations
private num num1
private num num2

// Method to add two numbers
public void add(num1, num2)
sum = num1 + num2
output "Result is:", sum
return

// Method to subtract two numbers
public void subtract(num1, num2)
difference = num1 - num2
output "Result is:", difference
return
endClass

class Calculator inheritsFrom SimpleCalculator
// Declarations
private num num1
private num num2

// Two-arg constructor
public Calculator(num1, num2)
this.num1 = num1
this.num2 = num2

// Method to multiply two numbers
public void multiply(num1, num2)
product = num1 * num2
output "Result is:", product
return

// Method to divide two numbers
public void divide(num1, num2)
if num2 = 0
output "Cannot divide by zero."
else
quotient = num1 / num2
output "Result is:", quotient
return
endClass

// Main method
main()
// Prompt user for input
output "Enter the first number:"
read num1
output "Enter the second number:"
read num2

// Create an instance of Calculator
calculator = new Calculator(num1, num2)

// Call arithmetic methods
calculator.add(num1, num2)
calculator.subtract(num1, num2)
calculator.multiply(num1, num2)
calculator.divide(num1, num2)
endMain
```

This pseudocode represents the class structure and methods as requested. Note that this is just a logical representation and does not correspond to any specific programming language.