88 941
Assignments Done
97.1%
Successfully Done
In July 2020

# Answer to Question #11438 in Python for Bryant

Question #11438
Write a program to calculate the weekly salary of a worker. Ask the user for the pay per hour for weekdays, and pay per hour on weekends. Then ask user for number of hours worked for each day of the week (i.e. Mon, Tue, &hellip; Sun). The program should then display the amount earned that week.
1
2012-07-06T07:23:02-0400
salaryWeek = input(&#039;input salary on weekdays: &#039;);
salaryWeekends = input(&#039;input salary on weekends: &#039;);
hoursWeek = input(&#039;hours of work mon: &#039;);
hoursWeek += input(&#039;hours of work tue: &#039;);
hoursWeek += input(&#039;hours of work wed: &#039;);
hoursWeek += input(&#039;hours of work thu: &#039;);
hoursWeek += input(&#039;hours of work fri: &#039;);
hoursWeekends = input(&#039;hours of work sat: &#039;);
hoursWeekends += input(&#039;hours of work sun: &#039;);
result = salaryWeek*hoursWeek+salaryWeekends*hoursWeekends;
print(&#039;amount earned that week = &#039;);
print(result)

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!