[Solved]Write Code Using C Need C D Would Appreciate Solve D Please Also Attach Screenshot Output Q37101775

write a code using c++
I only need c) and d) but would appreciate if you can solvea-d
please also attach a screenshot of the output.
thank you!
This lab will continue to familiarize the student with using arrays. Store all the function proto-types in lab12_funch and store all the functions in lab12_func.cpp. Make sure you have proper header comments in each .h,.cpp file. When you run your program, your sample output should show your name. Your hardcopy handout should include the following: 1) lab11 func.h 2) lab11 func.cpp 3) lab11.cpp 4) sample output Write the following functions: a) void fill_array_with_random_nums(int arrayll, int N):ill array with random numbers 0 to N-1 b) void print array(int array[l, int N: It prints array contents 5 per line. The number of elements in the array is N. This is same as from project lab 11 c) int linear_search(i array int N, int element): This function searches the array to see if element is in the array. If it is found, it returns the index where the element is. If the element is not in the array it returns -1 d) void print search-result(int-array[], int N). For 0 to N-1, use linear-search to search array for i, if i is in the array then print’+ to the screen otherwise print’-to the screen. At the end of the last element search print “n” Write a program to perform the following tasks 1) define array p to hold maximum of 100 integers. 2) Ask user to enter a value for N. N to be between 1 to 100 3) Call fill array_with_random_numbers(p, N) to fill the array p with N random numbers. 4) Call print array(p, N) to print the array p contents. 5) call print_search_result (p,N) to print the search results. Show transcribed image text This lab will continue to familiarize the student with using arrays. Store all the function proto-types in lab12_funch and store all the functions in lab12_func.cpp. Make sure you have proper header comments in each .h,.cpp file. When you run your program, your sample output should show your name. Your hardcopy handout should include the following: 1) lab11 func.h 2) lab11 func.cpp 3) lab11.cpp 4) sample output Write the following functions: a) void fill_array_with_random_nums(int arrayll, int N):ill array with random numbers 0 to N-1 b) void print array(int array[l, int N: It prints array contents 5 per line. The number of elements in the array is N. This is same as from project lab 11 c) int linear_search(i array int N, int element): This function searches the array to see if element is in the array. If it is found, it returns the index where the element is. If the element is not in the array it returns -1 d) void print search-result(int-array[], int N). For 0 to N-1, use linear-search to search array for i, if i is in the array then print’+ to the screen otherwise print’-to the screen. At the end of the last element search print “n” Write a program to perform the following tasks 1) define array p to hold maximum of 100 integers. 2) Ask user to enter a value for N. N to be between 1 to 100 3) Call fill array_with_random_numbers(p, N) to fill the array p with N random numbers. 4) Call print array(p, N) to print the array p contents. 5) call print_search_result (p,N) to print the search results.
Expert Answer
Answer to write a code using c++ I only need c) and d) but would appreciate if you can solve a-d please also attach a screenshot … . . .
OR

