[Solved]Lab09c Used Driver Main Lab09 Utilc Used Supporting Utility Functions Lab09 Utilh Used Pro Q37092593
Please help! And please answer all 8 questions otherwise leavefor another tutor. Thanks in advance.

Lab09.c, used for the driver (main) Lab09 util.c, used for all of the supporting (utility) functions and Lab09 util.h, used for the prototypes of the supporting functions. Create a main in Lab09.c that calls your Version routine (that is also in the file). Create a Version ) routine as in other labs and ensure that the appropriate name(s) and version number are output. 2. Build and run a properly coded template. 3. Activities Today we (that is, you) will be solving problems using recursion. Do not use loops to repeat steps; use recursion.You are expected to comment your code thoroughly: 1. Write a recursive function that asks the user to enter a positive number. If a negative number is entered, warn the user and continue to prompt until a positive number is entered. The function returns the entered positive number. You are not allowed to use a loop. 2. Write a recursive function to raise a number to a power. Both the base and exponent should be positive integers. The function, given values for each, should return the result of the repeated multiplication that is the calculation for the base raised to the exponent. Again, no loops are allowed in this function. After you initial implementation, consider altering the algorithm to leverage the fact that there are factorizations such asx(xxand xxx Write a recursive function that displays the Jarvis Sequence. The Jarvis Sequence is calculated as follows: 3. 1) Given any positive integer n 2) Print n on a line by itself a. If n is even, divide it by 2 b. If n Is odd, multiply it by 3 and add 1 3) Repeat the this process until n equals 1 The last value printed is the 1 at the end of the sequence. You are not allowed to use loops in this function. Write a recursive function that takes an integer array (and its size) and fills the array with random numbers ranging from 7 to 320 (inclusive). Nope, still not allowed to use loops Write a recursive function that takes an integer array (and its size) and prints each element, in order (by position, “left-to-right”). Make sure to put commas between the elements but not after the last one; and, you guessed it, no loops Write a recursive function that takes two integer arrays of the same size and copies the first one backwards into the second one. NO LOOPS, still. Write a recursive function that returns the number of times a number appears in a given array. The function takes an integer scalar to be searched for, an integer array to search in, and the array’s size. Guess what? No loops Finally, write a main function that tests all of the above functions. Arrays are to be allocated and initialized in main. No flow control statements are to be used in main. 4. 5. 6. 7. 8. Lab09.c, used for the driver (main) Lab09 util.c, used for all of the supporting (utility) functions and Lab09 util.h, used for the prototypes of the supporting functions. Create a main in Lab09.c that calls your Version routine (that is also in the file). Create a Version ) routine as in other labs and ensure that the appropriate name(s) and version number are output. 2. Build and run a properly coded template. 3. Show transcribed image text Lab09.c, used for the driver (main) Lab09 util.c, used for all of the supporting (utility) functions and Lab09 util.h, used for the prototypes of the supporting functions. Create a main in Lab09.c that calls your Version routine (that is also in the file). Create a Version ) routine as in other labs and ensure that the appropriate name(s) and version number are output. 2. Build and run a properly coded template. 3.
Activities Today we (that is, you) will be solving problems using recursion. Do not use loops to repeat steps; use recursion.You are expected to comment your code thoroughly: 1. Write a recursive function that asks the user to enter a positive number. If a negative number is entered, warn the user and continue to prompt until a positive number is entered. The function returns the entered positive number. You are not allowed to use a loop. 2. Write a recursive function to raise a number to a power. Both the base and exponent should be positive integers. The function, given values for each, should return the result of the repeated multiplication that is the calculation for the base raised to the exponent. Again, no loops are allowed in this function. After you initial implementation, consider altering the algorithm to leverage the fact that there are factorizations such asx(xxand xxx Write a recursive function that displays the Jarvis Sequence. The Jarvis Sequence is calculated as follows: 3. 1) Given any positive integer n 2) Print n on a line by itself a. If n is even, divide it by 2 b. If n Is odd, multiply it by 3 and add 1 3) Repeat the this process until n equals 1 The last value printed is the 1 at the end of the sequence. You are not allowed to use loops in this function. Write a recursive function that takes an integer array (and its size) and fills the array with random numbers ranging from 7 to 320 (inclusive). Nope, still not allowed to use loops Write a recursive function that takes an integer array (and its size) and prints each element, in order (by position, “left-to-right”). Make sure to put commas between the elements but not after the last one; and, you guessed it, no loops Write a recursive function that takes two integer arrays of the same size and copies the first one backwards into the second one. NO LOOPS, still. Write a recursive function that returns the number of times a number appears in a given array. The function takes an integer scalar to be searched for, an integer array to search in, and the array’s size. Guess what? No loops Finally, write a main function that tests all of the above functions. Arrays are to be allocated and initialized in main. No flow control statements are to be used in main. 4. 5. 6. 7. 8.
Lab09.c, used for the driver (main) Lab09 util.c, used for all of the supporting (utility) functions and Lab09 util.h, used for the prototypes of the supporting functions. Create a main in Lab09.c that calls your Version routine (that is also in the file). Create a Version ) routine as in other labs and ensure that the appropriate name(s) and version number are output. 2. Build and run a properly coded template. 3.
Expert Answer
Answer to Please help! And please answer all 8 questions otherwise leave for another tutor. Thanks in advance. … . . .
OR

