3
Answers

to develop a class name credit card

Veerpal Kaur

Veerpal Kaur

3y
1.5k
1

You are requested to develop the following console application using C#. The application reads, stores and retrieves objects of the following types:

CreditCard: class with the following attributes:

Attributes:

cardNumber: String

clientName: String

balance: float

limit: float

Methods:

float spend (float amount): adds the “amount” to the balance of this card, if the new balance does not exceed the limit of the card.

float pay (float amount): pays off the balance of this card by the as much as “amount”

Answers (3)