Question: i need help on how to wrote this code properly as my own with explanation on how to do it. White a cotrglede ct+ prograrn
White a cotrglede ct+ prograrn that maets the folibeing fequirenents: paict the due date tut prist vesians were not: Main Fumiten! 1) Initialiae a 20 vector of intetess wh the folomitevalues: {11,1,3,1,5),(1,1,3,1,5),(1,1,3,1,5)(1,1,3,1,5)11,1,1,1,5)} Name this 20 vector 9a+a1. 2) Baitialiat a 20 vector of integers with the folbwing values: (1,2,1,4,5,6,1,9,10)M2,1,2,1},1{2,2,2] Name this 2D Vcctor Dataz. 3) Aan a function named Searchfveri Pats Datat as an arbument to the Search fitn fanction. Searchivent. Wil retum a 10 vector. Thit vector will contain the rows and oolumrs of ahere each enes fumber in the 29 parameter is locales. If the 20 wector centains no twen munberk, the vector taturned wilt oely ceetaiti the value -1. 4) We a separate function to diogliy the cotients of the wether that Seirche utn returnt. if Batat centaned at least 1 ewen number, then outgot one tow and 1 colemen per line. if Datat did net contain aty even. fumbers, thendisply a message that indicates this. Name this functions bisclay Locationt 5). Aun the functisn Searchivna again. Pass Dataz ari at argumect to the Searth fiven function. did not contain amy even mumbers, thrn dipplay a meisage that indicates this. Sample Rin
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
