#include using namespace std; int main(){ // Variables int account; double balance, charges, credits, limit; cout << "Enter account number ( or enter -1 to exit program ): "; cin >> account; while(account!=-1){ cout << "Enter beginning balance: "; cin >> balance; cout << "Enter total charges: "; cin >> charges; cout << "Enter total credits: "; cin >> credits; cout << "Enter credit limit: "; cin >> limit; balance = balance + charges - credits; if(balance>limit){ cout << "Account: " << account; cout << "\nCredit limit: " << limit; cout << "\nBalance: " << balance; cout << "\nCredit Limit Exceeded."; } cout << "\n\nEnter account number ( or enter -1 to exit program ): "; cin >> account; } }