Question: in C Programming question 2 Chapter 06 Program Exercises 1) PE 06 01 (Basic Arrays with Random Numbers) This program requires the creation and use

in C Programming question 2in C Programming question 2 Chapter 06 Program Exercises 1) PE 06

Chapter 06 Program Exercises 1) PE 06 01 (Basic Arrays with Random Numbers) This program requires the creation and use of four specific functions (max, min, totalOdds, and totalEvens). Write a program that loads two arrays with 10 random numbers that vary in value from 10 to 20. Use the functions you created to determine the largest, smallest, and total number of even and oda elements in each array. Your program should display each array to the screen followed by the largest value, smallest value, total even elements, and total odd elements. 2) PE 06_02 (Bubble Sorting Arrays) Prompt the user to enter a seed value (0 to 10) for the srandO function, then create a random array with 10 integers that range from 10 to 50. Use and modify the bubble sort routine discussed in class to sort the array (no optimization). Display the original random array to the screen. After each pass display the current pass number, modified array after each pass, and the total number of swaps for each pass. A sample format is illustrated below. Bonus (+5): Make this a sentinel-controlled progr Enter a seed number between 0 and 10: 1 Original: 10 27 30 24 32 31 49 12 35 38 pass: 1 swaps: 5 array: 10 27 24 30 31 32 12 35 38 49 pass: 2 swaps: 2 array10 24 27 30 31 12 32 35 38 49 pass: 3 swaps: 1 array: 10 24 27 30 12 31 32 35 38 49 pass: 4 swaps: 1 array 10 24 27 12 30 31 32 35 38 49 pass: 5 swaps: 1 array 10 24 12 27 30 31 32 35 38 49 pass: 6 swaps: 1 array: 10 12 24 27 30 31 32 35 38 49 pass: 7 swaps: 0 array 10 12 24 27 30 31 32 35 38 49 pass: 8 swaps: 0 array: 10 12 24 27 30 31 32 35 38 49 pass: 9 swaps: 0 array: 10 12 24 27 30 31 32 35 38 49 Enter a seed number between 0 and 10 (-1 to quit)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!