Question: Object oriented programming C++ Q1: Write a function that receives an array checks if an integer array is sorted or not. bool isSorted(int all, int

Object oriented programming C++  Object oriented programming C++ Q1: Write a function that receives an

Q1: Write a function that receives an array checks if an integer array is sorted or not. bool isSorted(int all, int n) Q2: write a function that receives three arrays, two sorted arrays and one empty array. The function should merges the first two sorted arrays into the third one. The size of the first two arrays is n, where the size of third array is void merge(int all, int bll, int ell, int n) Q3: write a function that receives an array, and its size, and returns the number of unique numbers inside this array int getUnique(int all, int n)t Q4: In the main function, define the following: Two integer arrays of size 5, A and B. One integer array of size 10 called C. Let the user fill arrays A and B with sorted numbers . Check if array A is sorted or not using isorted function. Merge arrays A and B into C using merge function. Print out how many unique numbers in array C

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!