Answered step by step
Verified Expert Solution
Link Copied!

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.

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

When does a corporation become a subsidiary of another corporation?

Answered: 1 week ago

Question

b. Why were these values considered important?

Answered: 1 week ago