Question: In this C++ assignment, you are asked to create a class called Account, which models a bank account. The requirement of the account class is
In this C++ assignment, you are asked to create a class called Account, which models a bank account. The requirement of the account class is as follows, (1) It contains two data members: accountNumber and balance, which maintains the current account name and balance, respectively. (1) It contains three functions: functions credit() and debit(), which adds or subtracts the given amount from the balance, respectively. The debit() function shall print amount withdrawn exceeds the current balance! if amount is more than balance. A function print(), which shall print A/C no: xxx Balance=xxx (e.g., A/C no: 991234 Balance=$88.88), with balance rounded to two decimal places. (When you submit your code, please upload your class code(s) and your test code to proves that your code works correctly.)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
