Problem 1

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

Problem 2

Create a Python program to calculate the average miles per gallon obtained on a trip. Given/inputs 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/outputs 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.

Academic Honesty!
It is not our intention to break the school's academic policy. Posted solutions are meant to be used as a reference and should not be submitted as is. We are not held liable for any misuse of the solutions. Please see the frequently asked questions page for further questions and inquiries.
Kindly complete the form. Please provide a valid email address and we will get back to you within 24 hours. Payment is through PayPal, Buy me a Coffee or Cryptocurrency. We are a nonprofit organization however we need funds to keep this organization operating and to be able to complete our research and development projects.