Question: avgpositive 7 multiples Write a function avgpositive 7 multiples that takes a vector as input and returns the average of all the positive numbers that

avgpositive7multiples
Write a function avgpositive7multiples that takes a vector as input and returns the average of all the positive numbers that are multiples of 7.
Assume that the input vector will contain at least one number that is a positive multiple 7.
>% returns average of 14 and 28.-7 is not included, because it is negative.
21
avgpositive 7 multiples Write a function

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!