Question: Go back to the example in Slide 2. Write a program that asks for the user salary and years of experience, and finds out if

 Go back to the example in Slide 2. Write a program

Go back to the example in Slide 2. Write a program that asks for the user salary and years of experience, and finds out if the user is eligible for a loan. Do not use elif and only use ONE if statement. Use the Boolean operators (and/orinot) to implement the two conditions Nested Decision Structures and the if-elif-elseStatement . A decision structure can be nested inside another decision struct ure -Commonly needed in programs Example: Determine if someone qualifies for a loan, they must meettwo conditions: Must earn at least $30,000/year Must have been employed for at least two years Check first condition, and if it is true, check second condition So we have two conditions two check. And we don't want to check them simultaneously. We want to check the second one IF the first one is true n

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!