Use a loop to act as a automatic withdrawal system from a


Use a loop to act as a automatic withdrawal system from a bank account. Assume the account has 1000 dollars to start with and money is taken from the account by the function: NewBalance = OldBalance - 3*n where n is the number of withdrawals that have been made on the account. Prompt the user for the number of withdrawals and have it print the final balance of the account to the screen after all withdrawals have been made. Note: If I put in 2 for the number of withdrawals, it should both subtract 3 from the account balance and 6 from the balance to get a total of 991.

Request for Solution File

Ask an Expert for Answer!!
Other Subject: Use a loop to act as a automatic withdrawal system from a
Reference No:- TGS0649924

Expected delivery within 24 Hours