Hey everyone! So I've mostly figured out this program and everything compiles that I have so far but there are two parts that I am unable to figure out which is the ouput of fileSave (below)
TripCost.txt should look like this: //reverse order
222
580.00
111
340.00
and the second issue I am having is calculating and outputting the totals (below is what the output is suppose to look like)
Welcome to Jim Vandergriff’s Space Travel Company //your name
Trip No Fuel Waste Misc Discount Fuel Final Cost
111 100.00 200.00 50.00 90.00 340.00
222 200.00 300.00 100.00 180.00 580.00
Totals 300.00 500.00 150.00 270.00 920.00
//-------------------------------------------------------------
// Assignment 11
// Purpose: Using parallel arrays and files as input and output
//-------------------------------------------------------------