Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void OutputAvg(int balloonNum, float balloonCost, int giftbagNum, float giftbagCost,
- int napkinNum, float napkinCost, int plateNum, float plateCost, int pizzaNum, float pizzaCost,
- int juiceboxNum, float juiceboxCost, float cakeCost)
- {
- ofstream fout;
- string filename;
- cout << "what output file do you want to use?";
- cin >> filename;
- fout.open(filename.c_str( ) );
- fout << fixed;
- fout << "Balloon Num:\t" << balloonNum << "\nBalloon Cost:\t" << balloonCost << "\nGiftBag Num:\t"
- << giftbagNum << "\nGiftBag Cost:\t" << giftbagCost << "\nNapkin num:\t" << napkinNum << "\nNapkin cost:\t"
- << napkinCost << "\nPlate num:\t" << plateNum << "\nPlate cost:\t" << plateCost << "\nPizza num:\t" << pizzaNum
- << "\nPizza cost:\t" << pizzaCost << "\nJuicebox num:\t" << juiceboxNum << "\nJuicebox cost:\t"
- << juiceboxCost << "\nCake cost:\t" << cakeCost;
- fout.close();
- return;
- }
Add Comment
Please, Sign In to add comment