A menu driven program similar to a bank. It should have a header file as well as
ID: 3658850 • Letter: A
Question
A menu driven program similar to a bank. It should have a header file as well as 2 cpp files. The first menu allows the user to identify whether or no they have an existing account. If the customer has an account, they go right to the transaction screen where they decide to 1. deposit, 2. withdraw or 3. view statement. If they want to open an account they they go to a menu to decide what type of account they want to open, a checking or savings. Checking accounts allow multiple deposits and withdrawals, but the possibility of overdrawing the account is possible, in which case the user is charged a fee equal to 0.15% of the amount they are overdrawn. No interest is accrued for checking account. You can overdraw your account to an amount equal to 20% of your beginning balance. Savings accrue interest at 3% a year, but the customer can make a limited number of withdrawals and cannot overdraw their account. Any help on this would be so greatly appreciated.Explanation / Answer
#include #include #include class Customer { private: // data members (properties) char *name; char *address; char *city; char *pcode; float acc_bal; public: Customer:: Customer() { // constructor name = NULL; address = NULL; city = NULL; pcode = NULL; acc_bal = 0.00; } void addcust() { // add customer method cout > name; cout > address; cout > city; cout > pcode; cout > acc_bal; } void deposit(float bal) { // deposit money method float dep; cout > dep; bal = bal + dep; acc_bal = bal; } void withdraw(float bal) { // withdraw money method float wdraw; cout > wdraw; bal = bal - wdraw; acc_bal = bal; } void showdata() { // show data method coutRelated Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.