Electrical and Computer Engineering
30 of 30
UAH
CPE 112
Case Study Implementation (Concluded)
•    {
•    cout << setw(12) << "Dept " << deptID << endl;
•    cout << setw(3) << storeNum << "     ";
•
•    while (deptSales > 250.0)
•    {
•        cout << '*' ;        // Print '*' for each $500
•
•        // Update loop control variable
•        deptSales = deptSales - 500.0;   
•
•    }
•    cout << endl;
•}