Store the following vector of 15 values as an object in your workspace: c(6,9,7,3,6,7,9,6,3,6,6,7,1,9,1). Identify the following elements: i. Those equal to 6 ii. Those greater than or equal to 6 iii. Those less than 6 2 iv. Those not equal to 6

Accepted Solution

Answer: Step-by-step explanation:We are given that store the following vectors of 15 values as an object in your workspace :6,9,7,3,6,7,9,6,3,6,6,7,1,9,1We have to find the number of elements 1.equal to  62. equal  or greater than 63.less than 64.not equal to 6The 15 vectors are arrange in increasing order then we get 1,1,3,3,6,6,6,6,6,7,7,7,9,9,91.6,6,6,6,6There are five elements which is equal to 6.2.Number of elements equal or greater than 6=6,6,6,6,6,7,7,7,9,9,9=11There are eleven elements which is equal or greater than 6.3. Number of elements which is less than 6=1,1,3,3=4There are four elements which is less than 6.4.Number of elements which is not equal to 6=1,1,3,3,7,7,7,9,9,9=10There are ten elements which is less than 6.