Question
Im having a hard time with this assignment or where to even begin. Week 4 Problem 1: Create Python program to solve a simple payroll
Im having a hard time with this assignment or where to even begin.
Week 4
Problem 1:Create Python program to solve a simple payroll calculation. Calculatethe amount of pay,givenhours worked, and hourly rate. (The formula to calculate payroll is pay = hourly rate * hours worked.)Display hourly rate, hours worked, and pay.
Problem 2: Create Python program tocalculate 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.Useyour own values to test the.You can hard code the values or you can use the input() function. See lesson 3 for sample code.
Step 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