// Fig. 2.9: fig02_09.cpp
// Class average program with sentinel-controlled repetition.
#include <iostream>

using std::cout;
using std::cin;
using std::endl;
using std::ios;

#include <iomanip>

using std::setprecision;
using std::setiosflags;

int main()
{
int total, // sum of grades
gradeCounter, // number of grades entered
grade, // one grade
accountNum, // account number **
TotChrgs, // total charges **
TotCreds, // total credits**
CredLim; // Credit limit (part) **
double average; // number with decimal point for average

// initialization phase
total = 0;
gradeCounter = 0;

// processing phase
cout << "Enter account number (-1 to end): ";
cin >> accountNum;

cout << "Enter Beginning Balance: ";
cin >> grade;

cout << "Enter total Charges: ";
cin >> TotChrgs;

cout << "Enter total credits: ";
cin >> TotCreds;

cout << "Enter Credit Limit: ";
cin >> CredLim;oh


something of this sort