Question: Introduction You will work with a randomly assigned partner partner assignments w will be posted to Canvas. Only one of you should submit the assignment.

 Introduction You will work with a randomly assigned partner partner assignments
w will be posted to Canvas. Only one of you should submit
the assignment. In this lab, you will be practicing problem-solving, assignment, input,

Introduction You will work with a randomly assigned partner partner assignments w will be posted to Canvas. Only one of you should submit the assignment. In this lab, you will be practicing problem-solving, assignment, input, output operations, if statements, functions, and recursion in C. The Lab Setup The following steps will help you set up the lab. For further reference, you may want to look at Lab 1. 1. Create a new folder in your OneDrive CISC130 folder, call it Lab9. 2. In CodeBlocks, make a new c file. Title it namel name2 lab9.c and save it in the folder you created above. Where your names take the place of nameX above 3. Make sure your names are at the top of the file in comments Activities Today we will be solving some fun problems using recursion. You are NOT allowed to split up the tasks. All group members must participate in solving each task. Your tasks are as follows: Write a function enterNum that askes the user to enter a positive number. If they enter a negative number warn them and then keep prompting them until they enter a positive one. Your function should return the positive number they enter. You are not allowed to use a loop. Write a recursive function fastPow for fast powering (it should work faster than the way 1. we wrote it in class). It should take an integer base and exponent; your function should return the base raised to the exponent. For full credit, your function should leverage the fact that xng-x"4"X"4 and x^ 13ex"6"X"6%--no loops are allowed in this function. 2. 3. Write a function jarvis that displays the Jarvis Sequence. The Jarvis Sequence is calculated as follows: Take any positive integer n a. b. Print n If n is even, divide it by 2 c. d. If n is odd, multiply it by 3 and add 1 Repeat the this process until n is1 e. You are not allowed to use numbers ranging from 7 to 320 (inclusive). Nope, still not allowed to use a loop. to put commas between the elements but not after the last one and you guessed it, no loops. first one into the second one but backward. NO LOOPS loops in you function. 4. Write a function randArr that takes an array and its size and fills the array with random 5. Write a function printArr that takes an integer array and its size and prints its. Make sure 6. Write a function backCpy that takes two integer arrays of the same size and copies the

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!