Question: C sharp please s., (Generic Linear Search Method) Write a generic method, Search, that searches an array us- the linear-search algorithm. Method Search should compare
s., (Generic Linear Search Method) Write a generic method, Search, that searches an array us- the linear-search algorithm. Method Search should compare the search key with each element a is army parameter until the search key is found or until the end of the array is reached. If the carch keyis found, return its location in the array; otherwise, return -1. Write a test app that inputs und searches an int array and a double array. Provide buttons that the user can click to randomly generate int and double values. Display the generated values in a TextBox, so the user knows what alues they can search for [Hint: Use (T : IComparable
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
