Answered step by step
Verified Expert Solution
Question
1 Approved Answer
File is txt Plz quick 6. Compute the total number of launched cars in each month. 7. Plot the result obtained in 6 as follows
File is txt
Plz quick
6. Compute the total number of launched cars in each month. 7. Plot the result obtained in 6 as follows HW: Monthly car launch 1 12 Problem A text file (Car_sale2.txt) with information about some cars is provided to you. This is a screenshot of the first lines with the header (1st line). Actually, the figure shown below is the screenshot of the same file in csv format 11 Mart 10 8 7 2 4 8 30 12 6 Month Objectives: 1. Display the names of the available car manufacturers. 2. Calculate the total profits of each car manufacturer. 3. Calculate the total profits for all car manufacturers. 4. Calculate the average fuel efficiency of all car manufacturers. 5. Display the car that are above and below average fuel efficiency as follows: To do: 1. Write a Python program to achieve the goals mentioned above 2. Divide your program into several functions. Each function is used to meet a specific purpose. Car by fuel effectency average average Some recommendations: 1. Add docstrings to your functions. 2. Add comments to explain briefly your functions/steps. Acura Integra Acura TL Audi A4 W 121 W 201 Buick Century Buick Park Avenue Buick LeSabre Acura RL Audi A6 Audi All Buick Regal Cadillac Deville Cadillac Seville Cadillac Eldorado Cadillac Caters Submission: . You must submit your program with your name and ID at the header . Also include your ID on the name of your program. For example, HW1_12346 Porsche Carrera Cabrio Toyota Taco Toyota 4Runner Toyota Land Cruiser Pontiac Grand Pontiac Pirebird Pontiac Grand Prix Pontiac Bonneville Saturn SL Saturn SC Saturn SW Toyota Corolla Toyota Camry Toyota Avalon Toyota Celica Volkswagen Gold Volkswagen Jetta Volkswagen Passat Volkswagen Cabrio Volkswagen GTI Tayuta www. Write python code to read car2 file and displayed the following: 1. Display the names of the available car manufacturers 2. Calculate the total profits of each car manufacturer 3. Calculate the total profits for all car manufacturers . 4. Calculate the average fuel efficiency of all car manufacturers 5. Display the car that are above and below average fuel efficiency as follows: Car 6. Compute the total number of launched cars in each month. 7. Plot the result obtained in 6 as follows Objectives: 1. Display the names of the available car manufacturers. 2. Calculate the total profits of each car manufacturer. 3. Calculate the total profits for all car manufacturers. 4. Calculate the average fuel efficiency of all car manufacturers. 5. Display the car that are above and below average fuel efficiency as follows: Car by fuel effeciency > averageStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started