Question: python please In this lab, you will write a program to compare integers with nested if statements or boolean operators. Objectives: Understand how to switch

python please
python please In this lab, you will write a program to compare
integers with nested if statements or boolean operators. Objectives: Understand how to
switch between the following two approaches: - Using nested if-statements: - Using

In this lab, you will write a program to compare integers with nested if statements or boolean operators. Objectives: Understand how to switch between the following two approaches: - Using nested if-statements: - Using Boolean operators with ifstatements Description In this lab you will prompt the user for 3 integers using 3 different input statements. Then your program should display the largest of the 3 values. Also, it should display the differences between the largest value and the other two values. You will be given the code to input the integers, complete with the typi unversion, but don't forget how to do this in case you had to do it ron your own. Note. This program can be completed with or without Boalean operators. Your program may be simplefit you use them. For practice, once you have gotten a full score, experiment with doing it both ways. ZyBooks will save your highest subrnission so there is no harm in trying Example of a sample run Enter first value: 7 Bnter second yalue: 7 Enter third value: 2 Largest value is: 7 It is 0 more than 7 and 5 more than 2 Encer tirst value: 10 Enter second value: 20 Enter third value: 30 Largest value 18:10 It 1510 more than 20 and 20 more than 30 Hint: if the first value is the largest, it should compare the second value and the third consecutively if the second value is the largest, it should compare the first value and the third consecutively. And, if the third value is the largest, it should compare the first value and the second consecutively. nput values in the first box, then click Run program and observe the program's output in the second box

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!