Question: Use this project to write and run a C program that performs the following: o Creates 8-element 1-D integer array named randNum. o Fill the

Use this project to write and run a C program that performs the following:

o Creates 8-element 1-D integer array named randNum.

o Fill the array with random values between (3 and 21), each run should give new random values and prints them in tabular format as in the sample output

o Pass the array to a function called findEvenMax() that finds the maximum even number in the array recursively and return it to the main. (dont use predefined functions to find the max)

o Pass the array to function called findEvenMin() that finds the minimum even number in the array recursively and return it to the main. (dont use predefined functions to find the min)

o Pass the max and min numbers to a recursive function called findLCF() that finds the Lowest Common Factor (LCF) not equal to one and return it to the main.

o Note: Lowest Common Factor (LCF) for two positive integers p and q is the lowest number f such that p / f and q / f doesnt have any remainder.

For example LCF(12, 6) = 2 and LCF(18, 9) = 3.

o The main function Prints the values of the maximum, minimum, and the LCF in a tabular form as shown in the sample output

Use this project to write and run a C program that performs

Sample Output The array has been filled with 8 random numbers as following: Index 0 value 7 1 2 3 4 3 4 14 10 19 9 15 Max Even Min Even LCF 14 4 2

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!