Answered step by step
Verified Expert Solution
Question
1 Approved Answer
femperatures(): unu Asks the user for daily high temperatures (in Celssiuss) from the keyboard. The function stops asking for temperatures when the user enters 500.
femperatures(): unu Asks the user for daily high temperatures (in Celssiuss) from the keyboard. The function stops asking for temperatures when the user enters 500. The function returns: the total number of hot days (temperatures 28 or higher) the total number of pleasant days (temperatures 16 - 27) the total number of cold days (temperatures 15 or lower) the average temperature for all days (rounted down) Do all inputs and calculations in integer. Use: cold_days, pleasant_days, hot_days, avg_temp = temperatures() Returns: cold_days - number of cold days (int) pleasant_days - number of pleasant days (int) hot_days - number of hot days (int) avg_temp - average temperature of all days (int)
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started