Question: An explanation on how to do this lab would be very helpful in my future. Thank you !! The language is C Implement function void
An explanation on how to do this lab would be very helpful in my future. Thank you !!
The language is C

Implement function void generate(int arall, int SIZE, int MIN, int MAX) that initiate one dimensional array of size SIZE, with random integers that are greater or equal to MIN and less or equal to MAX. Implement function void fitne.print(int arall, int SIZE, int COLS) that prints one dimensional array of integers of size SIZE in COLS columns 134 6 9 12 6_//for example 1996 34 196 122 //SIZE=17, COLS=5 149 167 151 161 163 187 111 Implement function void findMaxIdx_int aro[], int SIZE, int *max vat, int *idx) that calculates maximum (pointed by max) and index (pointe by idx) og maximal element in one dimensional array of integers of size SIZE: Replace commented lines in the function main #define SIZE 16 #define MIN 100 #define MAX 200 #define COLS 5 int main void) int data (SIZE); // call generate // call sineprint int maxva tu idxi // call findMaxRex // replace all elements in data array with max.vat // form index 0 to idx // call sineprint return 0
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
