## Solution for problem 8 Chapter 6

# The average monthly precipitation (in.) for Boston andSeattle during 2012 are given in

MATLAB: An Introduction with Applications | 5th Edition

The average monthly precipitation (in.) for Boston andSeattle during 2012 are given in the vectors below (data1 1 1 1 11 2 3 4 51 3 6 10 151 4 10 20 351 5 15 35 70from 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 precipitationin 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 Bostonlower than the precipitation in Seattle?

**Accepted Solution**

**Step 1 of 3**

Section 1.1 — Propositions Friday, August 25, 20175:27 PM Definition 1: A proposition is a statementthat declares or claimssomethingthat is eithertrue or false,and in theory there is a way to determinewhetherit is true or false. Example 1: Are the following statements propositionsIf they are, what is their truth value" 1. "The capitalof Michiganis Lansing." (Yes, T). 2. "1 + 1 = 3" (Yes, F). 3. "x + 2 = 5" (No, becausex is not specified). 4. "What time is it" (No, it is not claimingsomething). Definition 2: Let p be a proposition.The negationof p,, is the statement:"It's not the casethat p." has the oppositetruth value of p. Negation Truth Table: p T F F T Example 2: Find the negation in the following statement.

###### Chapter 6, Problem 8 is Solved

**Step 2 of 3**

**Step 3 of 3**

Enter your email below to unlock your **verified solution** to:

The average monthly precipitation (in.) for Boston andSeattle during 2012 are given in