In this HW you will create 3 programs that explore getting user input and using if statements.
Rx: <15 min Av: 15-30 min Sd: 30-45 min DNF: 45+ min
Create a program that asks the user for the current temperature and outputs what they should wear. Your program should meet the following requirements:
temp
, that stores the temperature input from the userOnly one phrase should be displayed to the user for any given temperature input. Make sure to test your program with multiple temperatures.
Create a program that asks the user for a number and prints its absolute value without using any python functions (in other words, you should use an if statement).
Create a program that asks the user for a whole number and prints whether it’s a multiple of 5. Make sure to test the program by inputting numbers that are multiples of 5 as well as those that aren’t multiples of 5. (Hint: what arithmetic operator can you use to determine whether a number is a multiple of another?)