Question: Objective: Create a simple Python program to recommend clothing based on the day's weather. ( SET UP THE INPUT AND OUTPUTS ) Scenario: Imagine you're
Objective: Create a simple Python program to recommend clothing based on the day's weather. SET UP THE INPUT AND OUTPUTS
Scenario: Imagine you're creating a personal digital assistant application. One of the app's features is to recommend to the user what to wear based on the day's weather. The user will input the current temperature and whether it's raining or not. Based on the input, your program will recommend appropriate clothing.
Specifications:
Inputs:
Temperature in Celsius: This input will determine whether the day is cold, moderate, or hot.
Is it raining? YesNo: This input will determine if the user should carry an umbrella or wear waterproof clothing.
Recommendations:
Cold temperature below deg C: Advise wearing a heavy jacket or sweater.
Moderate temperature between deg C and deg C: Advise wearing a light jacket or tshirt.
Hot temperature above deg C: Advise wearing shorts and a tshirt.
If it's raining, additionally recommend:
Carrying an umbrella.
Wearing waterproof shoes.
Flow:
Prompt the user to enter the current temperature.
Prompt the user to specify if it's raining.
Using if elif, and else statements, determine and print the clothing recommendation.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
