Answered step by step
Verified Expert Solution
Question
1 Approved Answer
BlockPy 29.2: BlockPy 29.4: Need to use assert_equal. Also getting 'not adequate' as an error = Fundamentals of Programming Assignments > Programming 29- Nesting Blocks
BlockPy 29.2:
BlockPy 29.4:
Need to use assert_equal. Also getting 'not adequate' as an error
= Fundamentals of Programming Assignments > Programming 29- Nesting Blocks Programming 29- Nesting Blocks Spring 2020 Home Announcements First Last BlockPy: #29.2) Possibly Undefined The code below is broken. Run the code and observe the error. Fix the code so that the the function calculate income will correctly decrease the salary by 10% if it is greater than $5,000 per year and otherwise return the salary adjusted Modules Syllabus Assignments Console: TEST PASSED TEST PASSED Feedback: Incorrect Answer View Trace Instructor Feedback Your code coverage is not adequate. You must cover at least half your code to receive feedback Grades Pages Collaborations Chat Evaluate Media Gallery My Media Run # Blocks Split Text Reset Import datasets Upload - History CoursEval Get Help on Circleln BlockPy Dashboard 1 from cisc108 import ansert equal 2 def calculate income (salary) : tax=1 if salary > 5000: tax-0.9 return falary Lax assert equal (calculate income (1000), 1000) 8 assert equal (calculate income (5000), 5000) AOD 10:50 PM Programming 29- Nesting Blocks Spring 2020 count Home Announcements FirstStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started