Create a python program to calculate average mile per gallon


Homework: Python Programming

You will complete this homework in Python 3.x. Make sure you have downloaded the software and it is installed correctly. You will download it from this site. You should download the Python programming language editor and compiler. To download Python (Download version 3.4 or the latest version--view the video above ).

Create a comment block (starts at line 1 of your code) with the following information:

Jerimiah Ginn
ENTD200 D005 Fall 2020
Dr. Novadean Watson-Williams
Date completed

I. Create a Python program to solve a simple pay calculation. Calculate the amount of pay, given employee name, hours worked, and hourly rate. (The formula to calculate payroll is pay = hourly rate * hours worked.) Display employee name, hourly rate, hours worked, and pay. (Do not add any rules such as overtime)

II. Create a Python program to calculate the average miles per gallon obtained on a trip. Input car name, the amount of gas used and the number of miles driven. (The formula to calculate miles per gallon is miles per gallon = number of miles driven / amount of gas used. ) Display car name, gas used, miles driven and MPG. Use your own values to test the. You can hard code the values or you can use the input() function. See announcement for sample code.

Format your homework according to the give formatting requirements:

1. The answer must be double spaced, typed, using Times New Roman font (size 12), with one-inch margins on all sides.

2. The response also includes a cover page containing the title of the homework, the course title, the student's name, and the date. The cover page is not included in the required page length.

3. Also include a reference page. The references and Citations should follow APA format. The reference page is not included in the required page length.

Solution Preview :

Prepared by a verified Expert
Python Programming: Create a python program to calculate average mile per gallon
Reference No:- TGS03090808

Now Priced at $50 (50% Discount)

Recommended (96%)

Rated (4.8/5)