SUBMISSION+SHAO+YUN

code format="cpp-qt" //Done by Tan Shao Yun 3S228 using namespace std;
 * Challenge 1**
 * 1) include

int main{ int Tables[10]={-1,0,1,2,3,4,5,6,7,8}; int x,nam,tempno, bur=0; int tempyes=0, size=(sizeof(Tables)/sizeof(int))-1; cout<<"WELCOME TO SHAO YUN'S PROAWESOME PROGRAM \n"; cout<<"\n==================================\n"; cout<<"WOULD YOU LIKE TO... \n"; cout<<"--\n"; cout<<"1. Find the maximum?\n"; cout<<"2. Find the minimum?\n"; cout<<"3. Find the average?\n"; cout<<"4. Find the number of times a number appears in the array?\n"; cout<<"5. Reverse the order of the array?\n"; cout<<"ANYTHING ELSE: EXIT?\n"; cout<<"--\n"; cout<<"I CHOOSE OPTION: "; cin>>x; cout<<"\n\n\n==================================\n"; switch(x){ case 1: cout<<"1. MAXIMUM\n"; cout<<"--\n"; cout<<"Setting default number as:"<tempyes){ cout<<tempyes<<" is smaller!"<<endl; tempyes=Tables[nam]; cout<<tempyes<<" is the new default\n"<<endl; }else{ cout<<tempyes<<" is larger!\n"<<endl; }           }            cout<<"==================================\n"; cout<<"THE MAXIMUM IS: "<<tempyes<<endl; cout<<"==================================\n"; break; case 2: cout<<"2. MINIMUM\n"; cout<<"--\n"; cout<<"Setting default number as:"<<Tables[0]<<endl; tempyes=Tables[0]; for(nam=0;nam<size;nam++){ tempno=Tables[nam]; cout<<"Checking:"<<tempno<<endl; if(tempno<tempyes){ cout<<tempyes<<" is larger!"<<endl; tempyes=Tables[nam]; cout<<tempyes<<" is the new default\n"<<endl; }else{ cout<<tempyes<<" is smaller!\n"<<endl; }           }            cout<<"==================================\n"; cout<<"THE MINIMUM IS: "<<tempyes<<endl; cout<<"==================================\n"; break; case 3: cout<<"3. AVERAGE\n"; cout<<"--\n"; cout<<"ADDING:"<>tempyes; bur=0; for(nam=0;namsize/2;nam--){ tempno=Tables[nam]; tempyes=Tables[size-nam]; Tables[nam]=tempyes; Tables[size-nam]=tempno; }           cout<<"THE ARRAY IS NOW: "; for(nam=0;namAl[i+1]){ first=Al[i]; Al[i]=Al[i+1]; Al[i+1]=first; swapped=true; }       }    }while(swapped==true); cout<<"HERE IS YOUR ARRAY AGAIN, SIR: "; for(nam=0;nam<size+1;nam++){ cout<<Al[nam]; }   cout<<endl; system("PAUSE"); }** code
 * Challenge 2**
 * //DONE BY TANSHAOYUN 3S228 OH GOD
 * 1) include