Use the techniques of Section 1.7 to revise the charge and make payment
methods of the CreditCard class to ensure that the caller sends a number
as a parameter.
If the parameter to the make payment method of the CreditCard class
were a negative number, that would have the effect ofraisingthe balance
on the account. Revise the implementation so that it raises a ValueError if
a negative value is sent.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here