Expert Answer
Here's an algorithm to solve the problem:Declare and initialize variables for account number, beginning balance, total charges, total credits, and credit limit.Prompt the user to enter the account number, beginning balance, total charges, total credits, and credit limit.Use a while loop to continue prompting for input until the user enters -1 for the account number.Calculate the new balance by adding the beginning balance, total charges, and total credits.If the new balance is greater than the credit limit, display the account number, credit limit, new balance, and the message "Credit Limit Exceeded".Otherwise, display the account number, credit limit, and new balance.Repeat steps 2-6 for each customer.End the program.