Question: This is a code and outcome i want the same out come using a diffrent code a samller code not as much lines implmented in
This is a code and outcome i want the same out come using a diffrent code a samller code not as much lines implmented in C++ with explantion 







8 9 10 11 #include #10 stream> using namespace std; const int SINGLE_ARRAY_SIZE10; void exercise-2(); 13 void month prompt(int i); void exercise_3() 16 void read_integers (int al, int max_size, int& real size); 17 void sort(int a, int size); 18 void swap(int a, int size, int index_1, int index_2); 19 void swap(int& a, int& b); void merge(int r, int r size, int a, int a_size, int bll, int b_size); void print array(const int a, int size); 3 void read_i) f int a[10], input, i-0; while (i 10) 25 26 27 cin >>input; if (cin.good)) 28 iinput; 29 30 else cin.clear); cout ch; 8 9 10 11 #include #10 stream> using namespace std; const int SINGLE_ARRAY_SIZE10; void exercise-2(); 13 void month prompt(int i); void exercise_3() 16 void read_integers (int al, int max_size, int& real size); 17 void sort(int a, int size); 18 void swap(int a, int size, int index_1, int index_2); 19 void swap(int& a, int& b); void merge(int r, int r size, int a, int a_size, int bll, int b_size); void print array(const int a, int size); 3 void read_i) f int a[10], input, i-0; while (i 10) 25 26 27 cin >>input; if (cin.good)) 28 iinput; 29 30 else cin.clear); cout ch
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
