Q.1. Write a recursive function that follows the “divide and conquer” approach to recursively calculate the sum of all the numbers in an array. The function should accepts as parameters: an array of integers, the index of the first element in the array, and the index of the last element in the array. You can test this function in a driver program, but you do not need to submit the driver program.

Q.2. Using the example of linked list of students’ records that we talked about in the class, with each record having the id and age of the student, write a function that counts the number of students on the list who are older than a specific age. The function should accepts as parameters a pointer to the head of the list, the specified age, and should return the computed value. The driver program main.cpp can be found in the assignment folder on the Blackboard.

Q.3. Using the example of linked list of students’ records that we talked about in the class, with each record having the id and age of the student, write a function that makes a copy of the list of students. The function should accepts as parameters a pointer to the head of the list, and should return a pointer to the head of the backup list (the order of the elements in the backup list can be the reverse order of the elements in the original list). The driver program main.cpp can be found in the assignment folder on the Blackboard.

Academic Honesty!
It is not our intention to break the school's academic policy. Posted solutions are meant to be used as a reference and should not be submitted as is. We are not held liable for any misuse of the solutions. Please see the frequently asked questions page for further questions and inquiries.
Kindly complete the form. Please provide a valid email address and we will get back to you within 24 hours. Payment is through PayPal, Buy me a Coffee or Cryptocurrency. We are a nonprofit organization however we need funds to keep this organization operating and to be able to complete our research and development projects.