Question: solve number 7 using the same task above 23 test cases including divisor zero. '), provide corrected code and 6. Bug Swatter - Fix the

solve number 7 using the same task above

23 test cases including divisor zero. '), provide corrected code and 6. Bug Swatter - Fix the syntax error, runtime error, and runtime exception. Original: year = input("What year were you born? ") if (year % 2 = = 1): print("You are even2-keeled") else print("You have an odd sense of humor") Deliver corrected code that prints "You are even-keeled" for even years and "You have an odd serge of humor" for odd years. Explain how your code avoids exceptions and show test cases. 7. Debugger plan fix (design) - Tax/tip program from Lesson Three. Faulty logic summary: tax and total computed incorrectly, tip comparison wrong. Without running code, provide a step-by-step debugging plan using breakpoints and/or trace prints: Where to place breakpoints. . Which variables/expressions to inspect at each breakpoint. . What values confirm the bug vs correctness. . Provide the minimal corrected code snippet that computes the total bill correctly and explain the fix

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 Mathematics Questions!