Question: # Problem: Calculate plumber s bill. # Input: minutes worked # Input: True if urgent, False otherwise # Output: cost minutes = 6 1 urgent

# Problem: Calculate plumbers bill.
# Input: minutes worked
# Input: True if urgent, False otherwise
# Output: cost
minutes =61
urgent = False
cost =0
hours =1
if minutes >60 :
hours = minutes //60
if minutes %60==0 :
hours = minutes //601
if urgent
cost =200+ hours *80
if not urgent:
cost =100+ hours *50
print(cost)
b.
o i.What are the syntax errors in this program? Consider no other errors at this point.
o ii.Correct the syntax errors. Now test your program for a non-urgent job of 59 minutes. Explain why the code fails.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!