Question: 1) For each of the test data values, what code was executed in each of the four types of if statements? 2) Were there


1) For each of the test data values, what code was executed in each of the four types of if statements? 2) Were there any incorrect conditional statements? If so, which statements were incorrect and how could they be corrected? 2) For each of the test data values, what code was executed in the logical operators code? 3) Are there any logical operator statements that could never be True? If so, explain why. print(" Nested if") if input_num >= 50: if input_num = 25: print('Number input is between 25 and 50') else: print('Number entered is less than 25') else: else: print(" Logical operators') if input_num >= 50 and input_num = 50 or input num 0: print('??') Test data: Execute the program four times each time using one of the test data values below: -1, 25, 50, 101 Code: input_num= int(input('Enter an integer value: ')) print('Simple if) #simple if if input_num > 50: print(input_num, 'is greater than 50') print(" if/else') if input_num > 50: print(input_num, 'is greater than 50') else: print(input_num, print(" if/elif/else') 'is not greater than 50') if input_num < 0: print('Number input is negative') elif input_num < 50: print("Number input is greater than or equal to 0 and less than 50') elif input_num < 100: print('Number input is greater than or equal to 50 and less than 100') else: print('Number input is greater than or equal to 100')
Step by Step Solution
3.39 Rating (180 Votes )
There are 3 Steps involved in it
Analyze the behavior for each of the test data values 1 25 50 and 101 1 For each of the test data values what code was executed in each of the four types of if statements For inputnum 1 Simple if prin... View full answer
Get step-by-step solutions from verified subject matter experts
