where can i find week 4 homework for ENTD200?
Logic and print function used to correctly print
the solution to Problem 1:
Create a Python program to solve a simple payroll calculation. Calculate the amount of pay, given hours worked, and hourly rate. (The formula to calculate payroll is pay = hourly rate * hours worked.) Display hourly rate, hours worked, and pay.
Logic and print function used to correctly print the solution to Problem 2:
Create a Python program to calculate the average miles per gallon obtained on a trip. Input 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 gas used, miles driven and MPG.
Code organization and comments