Write a program that allows users to enter a dollar amount


Question- Write a program that allows users to enter a dollar amount for their bank account balance at the beginning of the month. Then ask the user to enter a dollar amount for any number of checks written in a month, up to 50.

- Add an appropriate sentinel value that the user can enter to stop enter checks. Store the amounts in an array and count the entries as the user makes them. Finally ask the user to enter a monthly interest rate if the account is interest bearing, or 0 if it is not.

- If the user enters 0 for the interest rate, than call a function named balanceAccount() that accepts the beginning balance, the number of checks, and the array of check amounts as parameters; the function displays the final balance after all checks have been subtracted from the beginning balance.

- If the user enters a number other than 0 for the interest rate, then call an overloaded function named balanceAccount() that accepts the beginning balance, the number of checks, the array of check amounts, and the interest rate as parameters.

- This function then computes the final balance by subtracting all the checks from the beginning balance and using the monthly interest rate to increase the final balance before displaying it.

Please only use things that would have been learned in the first six chapters of the book mentioned above. Please dont use code that we have not learned about.

Points will be awarded promptly as long as it is right format correct code and runs properly.

Request for Solution File

Ask an Expert for Answer!!
JAVA Programming: Write a program that allows users to enter a dollar amount
Reference No:- TGS0966307

Expected delivery within 24 Hours