16. Consider the following code: ot her = True 1 - int (input (OMumber: )) if other and x > 0: print ('One ') elif other or x > 1: print ('Two ') el se: print ('Three ) as there a value of x that can be input that will lead to One being printed out? b. Is there a value of x that can be input that will lead to Two being printed out? c. Is there a value of x that can be input that will lead to Three being printed out ?

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
#16 what value of x would return 3?
is less than 2000 feet - but it doesn't do that. What DOES happen instead? How
answer both the questions!)
heighti float linput('Enter height of first plane: ))
height2 - float (input ('Enter height of second plane: "))
if height1 height2 < 2000 or heighti - beight2 > -2000:
print ('Urgent vaming)
el se:
print ('Everything is fine')
16. Consider the following code:
ot her - True
x - int (input Oumber: ))
if other and x > 0:
print ('One')
elif other or x > 1:
print ('Two )
el se:
print ('Three)
a s there a value of x that can be input that will lead to One being printed out?
b. Is there a value of x that can be input that will lead to Tuo being printed out?
c. Is there a value of x that can be input that wil lead to Three being printed out?
17. Consider the code shown below
1 - int (input ('Enter a number: ))
y int (input ('Enter a number: ))
b= x =-y
if x 10:
if b:
print('A!)
if b or x > 20:
print('B!)
elif I > 6:
if x > y:
print('C!)
if y > 4:
print('D!)
else:
print(E)
el if x > 4:
print ('F!)
Transcribed Image Text:is less than 2000 feet - but it doesn't do that. What DOES happen instead? How answer both the questions!) heighti float linput('Enter height of first plane: )) height2 - float (input ('Enter height of second plane: ")) if height1 height2 < 2000 or heighti - beight2 > -2000: print ('Urgent vaming) el se: print ('Everything is fine') 16. Consider the following code: ot her - True x - int (input Oumber: )) if other and x > 0: print ('One') elif other or x > 1: print ('Two ) el se: print ('Three) a s there a value of x that can be input that will lead to One being printed out? b. Is there a value of x that can be input that will lead to Tuo being printed out? c. Is there a value of x that can be input that wil lead to Three being printed out? 17. Consider the code shown below 1 - int (input ('Enter a number: )) y int (input ('Enter a number: )) b= x =-y if x 10: if b: print('A!) if b or x > 20: print('B!) elif I > 6: if x > y: print('C!) if y > 4: print('D!) else: print(E) el if x > 4: print ('F!)
Expert Solution
steps

Step by step

Solved in 3 steps with 3 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY