You are developing a BankAccount structure for Parkville Bank. The structure contains fields for the account number, the account balance, and the annual interest rate earned on the account. Using the same structure, write the functions below:
» An enterAccountData()function that declares a local BankAccount object and prompts the user for values for each data field. Allow neither a negative balance nor a negative interest rate; continue to prompt the user until valid values are entered. The function returns a data-filled BankAccount object to the calling function.
» A computeInterest()function that accepts a BankAccount parameter. Within the function, prompt the user for the number of years the account will earn interest. The function displays the ending balance of the account each year for the number of years entered based on the interest rate attached to the BankAccount.
» A displayAccount()function that displays the details of any BankAccount object passed to it.
» A main()function that declares a BankAccount object and continues to get BankAccount values from the user until the user enters a BankAccount with value 0 for the account number. For each BankAccount entered, display the BankAccount details and a list of future balances based on the term the user requests.
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.