Electrical and Computer Engineering
20 of 30
UAH
CPE 112
Case Study: Implementation
•
•void GetData( ifstream&, int&, float& );
•void OpenForInput( ifstream& );
•void PrintData( int, int, float );
•void PrintHeading();
•
•int main()
•{
•    int      deptID1;      // Department ID for Store 1
•    int      deptID2;      // Department ID for Store 2
•    float    sales1;       // Department sales for Store 1
•    float    sales2;       // Department sales for Store 2
•    ifstream store1;       // Accounting file for Store 1
•    ifstream store2;       // Accounting file for Store 2