question, I WILL GIVE ATHUMBS DOWN REGARDLESS if it is not right.thank you!
this is systems software, complete in C. DON'T COPY ANOTHER ANSWER OFF OF answers, DO IT ON YOUR OWN. will
give thumbs up if you answer fully and
correctly! only answer if you know how to
properly answer! the instructions for the code
(within code) are attached below. The output
needs to look like the blue colored words within
the picture. It needs to look EXACTLY LIKE
THAT. Create a new code that creates this
output (blue colored words) and i will give
thumbs up. dont answer if this is your last
question before getting fired, or if you dont
understand the question, I WILL GIVE A
THUMBS DOWN REGARDLESS if it is not right.
thank you!
2. (100 pts) Write a C program E2p2.c that accepts three command line arguments n,M,N where n is an integer between 2 and 4 inclusive, M is an integral multiple of 24 (e.g. 24, 48, etc), and N is an integer between 5 and 15 inclusive. Generate M*N random integers between 1 and 79 inclusive and store them in an M by N 2D dynamic integer array. The program should use pthread to create n threads to backward-reverse-copy all the array elements in place (i.e. the first row and last row are swapped in reverse column order, the second row and second-to-last row are swapped in reverse column order, etc). The program should divide this task of backward-reverse-copying the array elements among the created in threads as evenly as possible. The program should print all the array elements before and after the update. A sample run can look like the following: [kwang@computer][/temp]$./E2p2 4 24 6 Using 4 threads. Original array: 48,78,14,76,76,50 34,21,54,64,62,47 ...(additional 20 rows here!!!!!!!!) 56,41,17,25,4,54 26,4,56,13,53,28 Backward-reverse-copy of the original array: 28,53,13,56,4,26 54,4,25,17,41,56 ....(additional 20 rows here!!!!!!!) 47,62,64,54,21,34 50,76,76,14,78,48
this is systems software, complete in C. DON'T COPY ANOTHER ANSWER OFF OF answers, DO IT ON YOUR OWN. willgive thumbs up if you answer fully andcorrectly! only answer if you know how toproperly answer! the instructions for the code(within code) are attached below. The outputneeds to look like the blue colored words withinthe picture. It needs to look EXACTLY LIKETHAT. Create a new code that creates thisoutput (blue colored words) and i will givethumbs up. dont answer if this is your lastquestion before getting fired, or if you dontunderstand the 2. (100 pts) Write a C program E2p2.c that accepts three command line arguments n,M,N where n is an integer between 2 an
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am