Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Answer the following questions: 1) Write a recursive c++ program that will outpu

ID: 3655146 • Letter: A

Question

Answer the following questions: 1) Write a recursive c++ program that will output all the subsets of a set of n elements without repeating any subsets. 2) Write a short recursive c++ function that finds the minimum and maximum values in an array of int values without using any loops. 3) Write a short recursive c++ function that will rearrange any array of int values so that all the even values appear before all the odd values 4) Write a short recursion c++ function that takes a character string s and outputs its reverse. so for example, the reverse of "pots&pans;: would be"snap&stop;" 5} write a short recursive c++ function that determines if a string s is a palindrome, that is, it is equal to its reverse. for example, "racecar" and "gohangasalamiimalasagnahog" are palindromes. 6) Write a short c++ function to count the number of nodes in a circularly linked list. 7) Write a short c++ function that repeatedly selects and removes a random entry from an n-element array until the array holds no more entries. Assume that you have access to a function random(k), which returns a random integer in the range from 0 to k

Explanation / Answer

//2. void MinMax(int arr[],int size, int i,int &min,int &max){ if(i==0){ min=arr[size-1]; max=arr[size-1]; } else if(i==size-1){ return; } if(min>arr[i]){min=arr[i];} if(max
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote