Question: Write a function method1(v,w) which takes as input two vectors v and w and returns true if every element in v is in w and

 Write a function method1(v,w) which takes as input two vectors v

Write a function method1(v,w) which takes as input two vectors v and w and returns true if every element in v is in w and returns false otherwise. Use the following pseudocode as your template. Make sure you are not copying and pasting any code from findelt1. You should be calling findelt1 directly within this function.

3. Write a function method1 (v,w) which takes as input two vectors v and w and returns true if every element in v is in w and returns false otherwise. Use the following pseudocode as your template. Make sure you are not copying and pasting any code from findelt1. You should be calling findelt1 directly within this function. default output is true for each element a in v % use finde lt 1 that you wrote above if a is not in w, return false

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 Databases Questions!