Electrical and Computer Engineering
20 of 23
UAH
CPE 112
•     incFile >> sex >> amount;    // Perform priming read
•
•    femaleCount = 0;             // Initialize process
•    femaleSum = 0.0;
•    maleCount = 0;
•    maleSum = 0.0;
•
•    while (incFile)
•    {
•        // Update process
•        cout << "Sex: " << sex << " Amount: "
•             << amount << endl;
•       
•