Respuesta :
Answer:
Assuming this is Python, I would do something like the following:
Explanation:
hourWage= float(input ("What is your hourly wage?: "))
regularHours= float(input ("How many regular hours did you work this week?: "))
overtimeHours= float(input ("How many overtime hours did you have this week?: "))
overtimeWage= (1.5*hourWage)
totalWeeklyPay= (hourWage*regularHours)+(overtimeHours*overtimeWage)
print= ("Your total weekly pay is: " ,totalWeeklyPay)
I hope this works!
Following are the program to calculate weeklyPay value:
Program Explanation:
- Defining a variable "Wage, Hour, Hours" that uses the float with the input method to take float value from the user-end.
- After input value, a "weeklyPay" is declared that calculates the value by the formula.
- After calculating the value a print method is declared that prints its calculated value.
Program:
Wage = float(input("Enter hourly wage: "))#defining a variable Wage that inputs float value
Hour = float(input("Enter total number of regular hours: "))#defining a variable Hour that inputs float value
Hours = float(input("Enter overtime hours: "))#defining a variable Hours that inputs float value
weeklyPay = (Wage*Hour) + (1.5*Wage*Hours)#defining a variable weeklyPay that calculates the values
print (weeklyPay)#defining a print method that prints weeklyPay value
Output:
Please find the attached file.
Learn more:
brainly.com/question/8020777
