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? (Yes/No): This input will determine if the user should carry an umbrella or wear waterproof clothing.
Recommendations:
Cold (temperature below 10\deg C): Advise wearing a heavy jacket or sweater.
Moderate (temperature between 10\deg C and 25\deg C): Advise wearing a light jacket or t-shirt.
Hot (temperature above 25\deg C): Advise wearing shorts and a t-shirt.
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 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 Programming Questions!