Question: Create a single source code file to solve the following problems Problem 1: Write a recursive function to perform a sequential search on a set
Create a single source code file to solve the following problems
Problem 1:
Write a recursive function to perform a sequential search on a set of integers
The function will require an array parameter and the number to look for.
These are the minimal parameter requirements
The function should take an array of any size
Problem 2:
Write a recursive function that will convert an integer (base 10) to binary
The function should only have an integer parameter
Have the function write the binary number to the console
The main function should perform as follows:
ask the user for a number
search an array for the number
if found, display the binary representation of the number
if not found, display an appropriate message
You may create the array and fill it in with any numbers as you see fit. The size of the array should be 15 elements
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
