Question: The average monthly precipitations (in) for Boston and Seattle during 2012 are given in the vectors below (data from the U.S. National Oceanic and Atmospheric
The average monthly precipitations (in) for Boston and Seattle during 2012 are given in the vectors below (data from the U.S. National Oceanic and Atmospheric Administration).
BOS = [2.67 1.00 1.21 3.09 3.43 4.71 3.88 3.08 4.10 2.62 1.01 5.93]
SEA= [6.83 3.63 7.20 2.68 2.05 2.96 1.04 0.00 0.03 6.71 8.28 6.85]
where the elements in the vectors are in the order of the months (January, February, etc.) Write a program in a script file to answer the following:
(a) Calculate the total precipitation for the year and monthly average precipitation in each city.
(b) How many months was the precipitation above the average in each city?
(c) How many months, and on which months, was the precipitation in Boston lower than the precipitation in Seattle?
Step by Step Solution
3.34 Rating (169 Votes )
There are 3 Steps involved in it
Script file clear clc BOS267 100 121 309 343 471 388 308 410 262 101 593 SEA683 363 720 268 205 296 ... View full answer
Get step-by-step solutions from verified subject matter experts
Document Format (1 attachment)
652-B-F-F-M (726).docx
120 KBs Word File
