You have been developing a BankAccount class for Parkville Bank that contains several fields and functions.
a. Add arithmetic operators that operate as follows:
» The += operator takes a double parameter, which can represent a deposit (or credit) to be added to the BankAccount balance. (If the parameter is negative, it will represent a withdrawal or debit from the account.)
» The + operator takes an integer parameter that increases the account number, returning a new BankAccount object with the new account number.
b. Include
operators that determine whether one account is less than or greater than another. These comparisons are based on balances. Include an == operator that makes a comparison based on account numbers. c. Include extraction and insertion operators for the class.
d. If you do not already have one, create a default constructor that assigns 0 to all the class fields.
e. Write a main()function that declares an array of five BankAccount objects. (Use the default constructor, so all the data fields will be initialized to 0s.) For each account, prompt the user for a series of transactions. The user enters a positive number for each deposit, a negative number for each withdrawal, and a 0 to quit entering transactions for an account. After the user has entered transactions for all five accounts, display the resulting details for each BankAccount. Save the file as BankAccountPartE.cpp.
f. Alter the main()function so that the user is prompted for starting account data instead of accepting the default 0 values. Save the file as BankAccountPartF.cpp.
g. Modify the main()function so that no two accounts are allowed with the same account number. Reprompt the user for a new account number when a duplicate occurs. Save the file as BankAccountPartG.cpp.
h. Modify the main()function to display the data for the accounts with the highest and lowest balances after all the data has been entered. Save the file as BankAccountPartH.cpp.
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.