Respuesta :

Answer:

The Python code is given below with appropriate comments

Explanation:

hoursWorked=input("Enter number of hours worked:")   #hours worked

hW=int(hoursWorked)      #to convert the string input to integer

hourlyRate=input("Enter Hourly Rate:")

hR=float(hourlyRate)     #to convert the string input to floating point number

print "Hours Worked=",hW,", Hourly Rate=",hR,", Pay=",hW*hR

The program is a sequential program, and does not require loops and conditions

The payroll program in Python, where comments are used to explain each line is as follows:

#This gets input for the number of hours worked

hours = int(input("Hours worked :"))

#This gets input for the hourly rate

rate=float(input("Hourly Rate :"))

#This calculates the pay

pay = hours * ray

#This prints the pay

print("Pay =",pay)

Read more about payroll calclations at:

https://brainly.com/question/15858747