Answered step by step
Verified Expert Solution
Question
1 Approved Answer
using matlab and fprintf to display results The maximum daily temperatures (in F) for New York City and Anchorage Alaska during the month of January,
using matlab and fprintf to display results
The maximum daily temperatures (in F) for New York City and Anchorage Alaska during the month of January, 2001 are given in the vectors belovw TNY = [31,26,30,3333394 1.41343345.42.363937,454336413732.32 3542383340.373651 51 2. TANC 137,24,28,25,21,28,46,37,36,20,24,31,34,40,43,36,34,41,42,35,38,36,35,33,42,42,37,26,20,25,31] Write a program that will answer the following: a. Calculate the average temperature for the month in each city b. How many days was the temperature for the month below the average in each city? c. How many days and which dates in the month was the temperature in Anchorage higher than the temperature in New York? How many days, and which dates in the month, was the temperature the same in both cities? How many days, and which dates in the month, was the temperature in both cities above freezing (above 32 F) What was the date of the last day of the month during which Anchorage was warmer than New York? What was the temperature of Anchorage on that day? d. e. f. The maximum daily temperatures (in F) for New York City and Anchorage Alaska during the month of January, 2001 are given in the vectors belovw TNY = [31,26,30,3333394 1.41343345.42.363937,454336413732.32 3542383340.373651 51 2. TANC 137,24,28,25,21,28,46,37,36,20,24,31,34,40,43,36,34,41,42,35,38,36,35,33,42,42,37,26,20,25,31] Write a program that will answer the following: a. Calculate the average temperature for the month in each city b. How many days was the temperature for the month below the average in each city? c. How many days and which dates in the month was the temperature in Anchorage higher than the temperature in New York? How many days, and which dates in the month, was the temperature the same in both cities? How many days, and which dates in the month, was the temperature in both cities above freezing (above 32 F) What was the date of the last day of the month during which Anchorage was warmer than New York? What was the temperature of Anchorage on that day? d. e. fStep 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