class Calculator:

```
def __init__(self,x,y):
pass
def add(self):
return self.x+self.y
pass
def subtract(self):
return self.x-self.y
pass
def multiply(self):
return self.x*self.y
pass
def divide(self):
return self.y//self.x
pass
```

a = Calculator(10, 94)

a.add()

a.subtract()

a.multiply()

a.divide()

@nyalakondasriharsha1

You need to build a calculator using

Class calculator and with 4 methods inside that class as mentioned.

Than you need to find the value from each method.

can u explain with an example mam

@nyalakondasriharsha1

explaination and pseudocode are available on the question itself

I can explain after the due date is over for this assignment.

can u give another example for my understanding purpose for assignment purpose

@nyalakondasriharsha1

As you work for a simple addition code using user defined function and a class .

In that manner you can solve this also

im unable to understand mam

@nyalakondasriharsha1

You need to submit the assignment.

After the due date is over than only I can give you the whole explanation.

1 Like