{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

Comp242-hw3-app - #include #include...

Info icon This preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
#include <iostream> #include <stdlib.h> #include <iomanip> using namespace std; u void fillArray(int ar[], int size, int inc); //takes three parameters ar, size and inc and fill the array with respect to these values void printArray(int* ar, int size); //prints the elements in the array void mergeArrays(int a1[], int size1, int a2[], int size2, int a3[]); //merges a2 and a1 then fill them into a3 void shuffle(int* ar, int size); //shuffles the elements in the array pointed by ar int indexOfMinimum(int ar[], int size); //returns the index of the minimum element in the array void sortArray(int* ar, int size,bool (*compare) (int a, int b)); //sorts the elements in the array pointed by ar bool ascending(int,int); //helps to the sort function bool descending(int,int); //helps to the sort function / int *ptr1; //first pointer int *ptr2; //second pointer int *ptr3; //third pointer int first; //first value for ar1 from user int second; //second value for ar2 from user int inc1; //increment that user enters for ar1 int inc2; //increment that user enters for ar2 / int main(){ i int ar1[5];
Image of page 1

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern