Veerpal Kaur

Veerpal Kaur

  • 2.2k
  • 2
  • 786

to develop a class name credit card

Dec 15 2021 8:42 PM

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)