If you developed a BankAccount structure for Parkville Bank. The structure contains two public fields for the integer account number and double account balance. Using the same structure, write a main()function in which you create two BankAccount objects. Add statements to the main()function to do the following:
» Prompt the user for account numbers and beginning balances for the two BankAccounts. The account number should be between 1000 and 9999; issue an error message if the user does not enter a valid account number. The balance should not be negative; issue an error message if it is. Continue with the program only if the account numbers and balances are valid for both accounts.
» Prompt the user for a dollar amount to be transferred from the first account to the second account.
» Issue an error message if the two accounts have the same account number, and do not carry out the transfer of funds.
» Issue an error message if the requested transfer causes the first account to fall below 0, and do not make the transfer.
» Issue a warning message if the transfer causes the balance in the first account to drop below $10, but make the transfer.
» Issue a warning message if the transfer causes the balance in the second account to be greater than $100,000, which is the highest amount that is federally insured.
» At the end of the main()function, display all account information for both accounts.
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.