SUBMISSION+SEAN


 * Challenge 1**
 * 1) include 

//int main { int max=0, min=0, i=0, avg=0, checknumber, times=0, swap; int arr[] = {1,2,3,4,5,6,7,8,9,0}; int size = sizeof(arr)/sizeof(arr[0]); /* to find length of array */

cout <<"The numbers in the array are: \n"; while (imax) max = arr[i]; if (arr[i]= 0) cout << "The lowest integer is: " << min << endl; cout << "The average value is: " << avg/size << endl; cout << "\nEnter a number to check its occurrence: "; cin >> checknumber;

i=0; while (i
 * Challenge 2**

int main { char arr[] = {'z','v','E','a','b'}; int size = sizeof(arr)/sizeof(arr[0]); int swap, i=0, temp; cout << "The letters of the array are: \n"; while (iarr[i+1]){ temp = arr[i+1]; arr[i+1] = arr[i]; arr[i] = temp; swap = 1; } } } while (swap==1);

for (i=0;i<size;i++){ cout<<arr[i]<<" "; }

cout<<"\n\n"; system("PAUSE"); return 0; }//