Answered step by step
Verified Expert Solution
Question
1 Approved Answer
WRITE IN PYTHON... NOT MATLAB, PYTHON Thank you! 5. The daily high temperature (F) in New York City and Denver, Colorado during the month of
WRITE IN PYTHON... NOT MATLAB, PYTHON Thank you!
5. The daily high temperature (F) in New York City and Denver, Colorado during the month of January 2014 is given in the vectors below (data from the U.S. National Oceanic and Atmospheric Administration) NYC [33 33 18 29 40 55 19 22 32 37 58 54 51 52 45 41 45 39 36 45 33 18 19 19 28 34 44 21 23 30 39] DEN [39 48 61 39 14 37 43 38 46 39 55 46 46 39 54 45 52 52 62 45 62 40 25 57 60 57 20 32 50 48 28] where the elements in the lists are in the order of the days in the month. Write a program that determines and displays the following information: (a) The average temperature for the month in each city (rounded to the nearest degree). (b) The number of days that the temperature was above the average in each city. (c) The number of days that the temperature in Denver was higher than the temperature in New York Answer: The averager temperature in New York City is: 35 F. The averager temperature in Denver is: 44 F. During 15 days the temperature in New York City was above the average. During 18 days the temperature in Denver was above the average. During 22 days the temperature in Denver was higher than in New York CityStep 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