The maximum daily temperature (in F) for Chicago and San Francisco during August are given in the
Question:
The maximum daily temperature (in F) for Chicago and San Francisco during August are given in the vectors shown below:
TCH = [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 6666];
TSF = [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 6669];
In Matlab, complete the following...
a. Use a while loop to calculate the average temperature in TCH.
b. Use a while loop to calculate the average temperature in TSF.
c. Use a while loop with nested if else statements to calculate the number of days in TCH that are above the average TCH temperature.
d. 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.
Horngrens Financial and Managerial Accounting
ISBN: 978-0133866292
5th edition
Authors: Tracie L. Nobles, Brenda L. Mattison, Ella Mae Matsumura