The program inExample 5-4 uses a sentinel control loop to process cookies sales data.
Assume that the data is provided in a file calledCh5_Ex18Data.txt and the first line in the file specifies the cost of one box.
Modify the program (inmain.cpp) so that it uses an EOF-controlled loop to process the data.
Provided data file Ch5_Ex18Data.txt info
3.50Sara 120Lisa 128Cindy 359Nicole 267Blair 165Abby 290Amy 190Megan 450Eligabeth 280Meridth 290Lesile 430Chelsea 378
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here