C++! You will need to write the function definitions to the new function declara
ID: 3702977 • Letter: C
Question
C++! You will need to write the function definitions to the new function declarations, and modify the main to have a menu and call all functions. I screen shotted the code and it goes in order. Thank you so much!
1 //Assignment 9 This should be completed individually 4 #include #include 6 #include 7 using namespace std; 9 const int MAX = 10; 12 //Function declaration, prototype 3 void PrintArray (int arl], int size); // MENU 1 14 void PrintReverse(int ar[], int size); // MENU 2 15 void FillRandom (int arl], int& size); // MENU 3 16 //New functions to be completed for Assignment 9 17 19 void FillInOrder(int ar[], int& size); // MENU 4 20 21 // This function will randomly generate the size (keep it?MAX) // The first value in the array will be randomly generated // All subsequent values should increase from the first value 24 void FillInReverseOrder(int ar], int& size); // MENU 5 25 26 // This function will randomly generate the size (keep itExplanation / Answer
#include #include #include #include using namespace std; const int MAX = 10; void PrintArray(int ar[], int size); void PrintReverse(int ar[], int size); void FillRandom(int ar[], int& size); void FillInorder(int ar[], int& size); void FillInReverseOrder(int ar[], int& size); bool IsPalin(int ar[], int& size); double GetAverage(int ar[], int& size); int GetMin(int ar[], int& size); int main(){ srand(time(NULL)); int mainAr[MAX]; int mainsize = 0; int choice = 1; while(choice != 9){ coutRelated Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.