4. Construct a test document that shows the test cases to be used for a particul
ID: 3606258 • Letter: 4
Question
4. Construct a test document that shows the test cases to be used for a particular program that uses if (This is similar to earthquake.py from lab 2 or 3) temp-int(input("Enter the degrees in Fahrenheit for today: ")) cloudy = bool( input( "Enter "True' if it'll be cloudy today,"+ " 'False' otherwise: " chance-of-rain = float(input("Enter a percentage "the chance of value between 0 and 1 for" it raining today: ")) windy bool(input("Enter 'True' if it'll be cloudy today," + " False' otherwise: ") if temp> 55 print("This is a quality spring day in Washington.") if cloudy: print("Hopefully there won't be too many clouds.") if chance of rain0.5 print("Fantastic. It's a GREAT day to be wearing scandals and shorts.") else: # what is the implied condition here? print("Well let's just get this day over with")Explanation / Answer
----------------------------------------------Test Cases to be used to check every possible condition---------------------------------
temp = 50
cloudy = True
chance_of_rain = 0.1
windy = True
temp = 60
cloudy = True
chance_of_rain = 0.4
windy = True
temp = 60
cloudy = True
chance_of_rain = 0.6
windy = True
temp = 60
cloudy = True
chance_of_rain = 0.4
windy = False
temp = 60
cloudy = True
chance_of_rain = 0.6
windy = False
temp = 60
cloudy = False
chance_of_rain = 0.4
windy = True
temp = 60
cloudy = False
chance_of_rain = 0.6
windy = True
temp = 60
cloudy = False
chance_of_rain = 0.4
windy = False
temp = 60
cloudy = False
chance_of_rain = 0.6
windy = False
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.