Unformatted text preview: infile >> bookShipping infile.close() cout << "How many books? " cin >> numBooks double bookSubtotal = pricePerBook * numBooks + bookShipping * numBooks cout << bookSubtotal << endl ofstream outfile("C:/Temp/output.txt", ios::app) // append mode outfile << bookSubtotal << endl outfile.close() return 0 }...
View Full Document
This note was uploaded on 04/01/2008 for the course CMPSC 101 taught by Professor Drobish,renee during the Spring '07 term at Penn State.
- Spring '07