i just really need help on the format on how to get it start . in python
Lab Week 8- File handling, Try except Skills Needed to complete this Lab Understand how to open, close, read and write files Be able to respond to common errors o FileNotFound o IOError o ValueError o etc Fuel Economy In this lab we'll write a program to read through a file containing information about fuel economy and output the results to a file above a threshold that the user gives. If the user wants to see all vehicles with a combined mpg greater than 50, then your program will output that information to the file of their choosing. The information is tab-delimited. When you read a line from the file, the values are separated by the tab character It. There are many ways to split this string data. Vehicle file organization Column Name Description year make model cylinders trany Vclass displ combinedmpg citympg highwaympg The year of the vehicle The make of the vehicle The vehicle model The number of cylinders in the vehicle The type of transmission (Manual, 5-spd, automatic, etc) Vehicle class (Two Seaters, subcompact, etc ) Engine displacement of the vehicle in liters The combined city and hwy fuel economy The fuel economy in the city The highway fuel economy Your program will need to ask the user for a minimum fuel economy, and be able to handle non float data being entered. It should continually ask for a correct value. It should also make sure they don't enter a value less than or equal to zero or greater than 100. The program will ask for an input file and should loop until the user gives a valid file that can be opened. It should also ask or an output file. While a FileNotF-oundError won't be thrown tying to open a file in write mode, it can generate an IOError. When writing out to the output fle, you should output the Year, Make and Model left justified by 40 spaces and the mpg right justified by 10 spaces. Your program should also be able to handle an incorrect combinedmpg column as in user and give the year, make and model that had the error Example Program es2.txt. When a bad value that cant be converted is encountered, you should warn the Enter the minimum mpgbad input You must enter a number for the fuel economy Enter the minimum mpg-10 Fuel economy given must be greater than Enter the minimum mpg300 Fuel economy must be less than 108 Enter the minimum mpg80 Enter the name of the input vehicle fileinvalidfile.txt Could not open file invalidfile.txt Enter the name of the input vehicle file = vehicles2.txt Enter the name of the file to output to There is an IO Error out*.txt out*.txt Enter the name of the file to output to . output.txt Could not convert value invalid for vehicle 1993 Chevrolet Caprice Could not convert value nine for vehicle 1993 Chrysler Concorde Example output.txt file 2000 Nissan 1999 GMC 2008 MINI 2011 Nissan Etc... Altra EV EV1 MiniE Leaf 85.880 85.000 98.000 99.800 vehicle. Notepad File Edit Format View Help year make model cylinders 1993 Chevrolet 1993 Chevrolet 1993 Chrysler 1993 Chrysler 1993 Chrysler 1993 Chevrolet 1993 Dodge Dakota Pickup 2WD 4 Manual 5-spd Standard Pickup Trucks 2.5 22 19 trany VClass displ combinedmpg citympg highwaympg Automatic 4-spd Large Cars Automatic 4-spd Large Cars 57 17 15 23 Caprice 8 Caprice 8 Concorde Concorde Fifth Avenue/Imperial Pickup 2580 2ND 8 5 invalid 15 Automatic 4-spd Large Cars 33 21 18 26 Automatic 4-spd Large Cars 3.5 nine 16 6 Manual 5-spd Standard Pickup Trucks 5.7 13 24 18 11 Automatic 4-spd Large Cars 3.3 20 24 25 1993 Dodge Dakota Pickup 2WD 1993 Dodge Dakota Pickup 2WD Automatic 4-spd Standard Pickup Trucks 3.9 16 6 Manual 5-spd Standard Pickup Trucks 3.9 16 14 2 Automatic 4-spd Two Seaters 1.6 26 23 31 Automatic 4-spd Standard Pickup Trucks 4.3 16 15 20 Mercury Sable 6 Automatic 4-spd Midsize Cars Automatic 4-spd Midsize Cars 1994 1994 Mercury Sable 6 1995 Honda Civic Del Sol 4 1984 Jeep C37 4HD 4 Manual 4-spd Special Purpose Vehicle 4H0 2.5 20 18 23 1985 oldsmobile Custom 1992 GMC Sonoma 4N 1993 Saturn SL 3.8 20 17 26 Cruiser Wagon 8 Automatic 4-spd Midsize-Large Station Wagons 5.7 21 18 26 Automatic 4-spd Compact Cars9 24 21 30