Problem

You are developing a BankAccount structure for Parkville Bank. The structure contains fiel...

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.

Step-by-Step Solution

Request Professional Solution

Request Solution!

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.

Request! (Login Required)


All students who have requested the solution will be notified once they are available.
Add your Solution
Textbook Solutions and Answers Search
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT