•void PrintData( /* in */ int deptID,
• /* in */ int storeNum,
• /* in */ float
deptSales )
•
•//
Prints the department ID number, the store number, and
•// a bar graph of the sales for the department. The bar
•// graph is printed at a scale of one mark per $500.
•// Precondition:
•// deptID contains a
valid department number
•// && storeNum contains a valid store
number
•// && 0.0 <= deptSales <=
25000.0
•//
Postcondition:
•// A line of the bar
chart has been printed with one
•// * for each $500
in sales, with remainders over
•// $250 rounded
up
•// && No stars
have been printed for sales <= $250