Task Description: Implement a Simple Calculator Class
You are required to implement a Calculator class located in the /app/ directory. This class should provide basic arithmetic operations: addition, subtraction, multiplication, and division.
Requirements:
Class Definition:
Create a class named Calculator.
Methods:
Implement the following methods within the Calculator class:
add(a: float, b: float) -> float: Returns the sum of a and b.
subtract(a: float, b: float) -> float: Returns the result of subtracting b from a.
multiply(a: float, b: float) -> float: Returns the product of a and b.
divide(a: float, b: float) -> float: Returns the result of dividing a by b. If b is 0, the method should raise a ValueError with the message "Cannot divide by zero".
Data Types:
Both parameters for the methods should be of type float.
Return Values:
Each method should return a float value representing the result of the operation.
Make sure to review and confirm that the implemented methods match the expected behavior defined in the test code to ensure all tests pass successfully.