Question: In this question, you need to create a function named cond _ test that will send in a single input variable A , and return
In this question, you need to create a function named condtestthat will send in a single input variable A and return the calcualtion ofB the value of which depends upon the value of A and the variables Topand Bottomwhich are the boundaries set for the conditional statements as detailed below The outputs must be in that order.
The function must:
i Set a variable Topto equal and a variable Bottomto equal
ii Using the conditional statements if elseifand else,calcualte the value of Bdepending upon the equations below.
when Ais greater than TOP, Bequals times A
when Ais greater than or equal to Bottombut less than or equal to TOP, Bequals times A
otherwise Bequals
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
