Electrical and Computer Engineering
25 of 30
UAH
CPE 112
Case Study: Implementation
•void PrintHeading()
•
•// Prints the title for the bar chart, a heading, and the
•// numeric scale for the chart. The scale uses one mark
•// per $500.
•// Postcondition:
•//     The heading for the bar chart has been printed
•
•{
•   cout << "Bar Graph Comparing Departments of Store #1
•            and Store #2" << endl << endl << "Store
•            Sales in 1,000s of dollars" << endl
•    << "#0         5        10        15        20        25"
•    << endl
•    << “ |.........|.........|.........|.........|.........|"
•    << endl;
•}