Question: READING FROM GIVEN DATA FILE & USE IT WITHIN THE PRORGAM You will be developing C++ program to report the Truck Tire readings which was

READING FROM GIVEN DATA FILE & USE IT WITHIN THE PRORGAM You will be developing C++ program to report the Truck Tire readings which was collected manually ( as seen in the picture below). The first thing you have to is to prepare an input data file. Name of the file must be TruckTireTemp.txt . Make a notepad file ( .txt) in your computer for the Truck Tire temperature readings and enter (simply type in) the following tire temp readings from Dump Truck #1 ( 10 Wheels). And, Save this file where you have the source code ( the default location on your computer is under MS Visual Studio / Projects..) . Then close this input data file. And then, develop to program code to produce following table on the screen (see the screenshot below) . Your c++ code, must read the data from the TruckTireTemp.txt input data file and show it on the screen with proper format ( as shown in screenshot ) WARNING MESSAGE: If the input data file contains 9 or less tire data then Error, file has less than 10 wheels. Check your input data file and re-run the code . Then, the program stops here. If the input data file contains 11 or more tire data then Error, file has more than 10 wheels. Check your input data file and re-run the code . Then, the program stops here. You do not need to establish a loop here. This is a one shot deal. NOTE 1 : You will be preparing two documents a) The input Data file to record the given tire pressure numbers for the truck (TruckTireTemp.txt) b) The C++ program code to read the data from TruckTireTemp.txt data file the presented it on the screen. And, you will be submitting only one document which is the source code. (lastName_A5.CPP) NOTE 2: Your data file must be named as TruckTireTemp.txt and should be placed in the default location in your computer. NOTE 3 : Do NOT submit any data file.

Tire No 1 .......Tire No 10 -----65, 77, 68, 80, 59, 78 79, 89, 58, 69 (This data is included in screenshot)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!