Question: In C++ language How to create program? Suppose that you have given an input data file named travel.txt which has traveler's name, distance traveled, and
Suppose that you have given an input data file named travel.txt which has traveler's name, distance traveled, and speed of vehicle. Write C++ statements to do the following: Create an input file named travel.txt with the following data: Nancy Lopez 375 58 Erik Gomez 679 73 Abel Garcia 280 70 Read values from the data file and calculate travel time Open an output file called travel.out and write name, distance, speed, and travel time. Your output must have two decimal places in fixed form
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
