Answered step by step
Verified Expert Solution
Question
1 Approved Answer
I do not understand f-j all code and answers from a-e are correct. 6. The maximum daily temperature (in F) for Chicagoand San Francisco during
I do not understand f-j all code and answers from a-e are correct.
6. The maximum daily temperature (in F) for Chicagoand San Francisco during the month of August are given in the vectors shown below, TCH TSF 75 79 86 86 79 81 73 89 91 86 81 82 86 88 89 90 82 84 81 79 73 69 73 79 82 72 66 71 69 66 66 69 68 70 73 72 71 69 76 85 87 74 84 76 68 79 75 68 68 73 72 79 68 68 69 71 70 89 95 90 66 69 6a) Use a while loop to calculate the average temperature in TCH 6b) Use a while loop to calculate the average temperature in TSF. 6c) Use a while loop with nested if else statements to calculate the number of days in TCH that are above the average TCH temperature 6d) Use a while loop with nested if else statements to calculate the dates in TSF that are above the average TSF temperature, use a column vector. 6e) Use a while loop with nested if else statements to calculate the 6f) Use a while loop with nested if else statements to calculate the 6g) Calculate the number of days in TCH that are above the average TCH 6h) Calculate the dates of the month that TSF that are above the ave TSF, dates in TSF that are lower than TCH, use a column vector. dates that TSF equals TCH, use a row vector temperature. Do not use a loop and do not use if else statements use a column vector. Do not use a loop and do not use if else statements. 6i) Calculate the dates of the month that TSF is lower than TCH, use a column vector. Do not use a loop and do not use if else statements. 6j) Calculate the dates of the month that TSF is equal to TCH, use a row vector. Do not use a loop and do not use if else statements. >>lab06 AVERAGE TEMPERATURE TCH AVERAGE_TEMPATURE_TSF - TCH-greater. THAN-AVG = date_TSF_greater_than_avg - 79.1290 74.5484 16 8 10 13 21 date TSF Lower than TCH- 3 4 8 13 14 15 16 17 18 19 20 23 24 25 26 >S 9%6 C TCH_greater_THAN_AVG-0; while iAVERAGE-TEMPERATURE-TCH TCH_greater_THAN_AVG TCH_greater_THAN_AVG+1; end end TcH greater THAN AVG %6d i-1; j-1; while iAVERAGE-TEMPATURE-TSF date TSF greaterthanavg(j,1)-i; end i-i+j; end date TSF greater thanavg 966e i=1; j=1 ; while iStep 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