Question: create a function that reads in a vector of numeric values. in this function you will loop through all the elements of the vector. You
create a function that reads in a vector of numeric values. in this function you will loop through all the elements of the vector. You must use a for loop. for each element: if that element is missing then set it to zero. if that element is negative then multiply the value by if that element is non negative then add two to the value
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
