Question: Needs to be visual Studio C + + You are requested to develop part of an application that is going to be used in a
Needs to be visual Studio C
You are requested to develop part of an application that is going to be used in a Bank. Specifically, you will need to implement the following:
Need to be able to ask the user their name, card type, card limit cost of item purchase, expiry date, institution card number.
Card: A bank card is identified by card number and card holder. Marks
There are two types of bankcards:
CreditCard Marks is a card with balance, limit institution that provides the cardCIBC RBC TD etc. and expiry date. These are the following required methods that you are requested to implement:
purchasefloat amount : This method is used when the owner purchases a product. Once called, the balance of this card is increased by amount However, if there is not enough credit available, the transaction is failed when available credit is not enough to purchase a product Notice that there is a limit for the card and the owner cannot exceed the limit
RewardCard Marks is a credit card with rewardpoints. So the customer collects one point for every dollar that is spent. Keep in mind that you will need to reimplement the purchase method to obtain points.
Customer Marks is identified by name, date of birth and address. Each customer has a collection of cards. A customer can purchase a product with either of cards if there is enough credit available Implement the payWithCardCard c method that is used by the customer to pay.
Test Marks: Test your code by creating a vector that contains one creditcard and one rewardcard in it
Note:
You are free to add any other features that you think isare required for this application.
You need to create three cards card creditcard and rewardcard
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
