Question: Create a single source code file to solve the following problems needs to submit the source file Function 1: Write a recursive function to perform

 Create a single source code file to solve the following problemsneeds to submit the source file Function 1: Write a recursive functionto perform a sequential search on a set of integers Details -Must

Create a single source code file to solve the following problems needs to submit the source file Function 1: Write a recursive function to perform a sequential search on a set of integers Details -Must work on any size array. The search function must have these minimal arguments o o o An array parameter The number to search The size of the array Function 2: Write a recursive function to convert an integer (base 10) to binary (see page 2) Details The function should only have the integer parameter. The function should return the binary representation of the number Main Function: Create a test array and fill it in with any numbers you want (minimum 15) Ask the user for a number Search an array for the number If the number is found display the binary representation of the number. - o Output: "# in Binary: result If the number is not found, then display the following output. o "Integer # was not found" Converting Decimal Integer to Binary To convert integer to binary, start with the integer in question and divide it by 2 keeping notice of the quotient and the remainder. Continue dividing the quotient by 2 until you get a quotient of zero. Then just write out the remainders in the reverse order. Here is an example of such conversion using the integer 12. First, let's divide the number by two specifying quotient and remainder: 12: 2-6+0 6:2-3 0 3:2 11 1:2-01 Now, we simply need to write out the remainder in the reverse order-1100. So, 12 in decimal system is represented as 1100 in binary Please use c+ to write the code and don't worry about the names thank you

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!