SUBMISSION+SAMUEL

Enter your submission for both Challenges here. Make sure your label your solutions clearly.

Challenge 1

code format="cpp" using namespace std;
 * 1) include

int main (void){ int Tables[10],total, min, max, i, n, a, s, r, x; //indicating variables char b   float avg;

s:   cout<<"Enter a maximum of 10 non-decimal numbers\n";

for (a=0; a<10; a++){ cout<<"Number"<>n; Tables[a]=n; }

max = Tables[0]; //resetting values min = Tables[0]; avg = 0; total = 0;

for (i=0; i<10; i++){          //finding maximum, minimum and total if(Tables[i]>max){ max = Tables[i]; }            if(Tables[i]=1;i--){ cout<>n; for(i=0;i<=9;i++){ if(n==Tables[i]) x++;                 //calculating occurance }   cout<<"The number of times "<>b; if (b==Y){ goto r;         }; cout<<"Restart Program? (Yes=Y/No=Any key)"<<"\n";   //loop cin>>b; if (b==Y){ goto s;             }; }

code

Challenge 2 code format="cpp" using namespace std;
 * 1) include

int main(void){ int a, b, c, i, x, y;//Listng variables char Allocations[5]; r: cout<<"Enter a maximum of 5 alphabets: \n"; //Alphabet input for(i=0;i<5;i++){ cout<<"Alphabet "<>Allocations[i]; }

for(x=0;x<4;x++){ for(i=0;i<4;i++){ a=int(Allocations[i]); b=int(Allocations[i+1]); if(a<91) a+=32; //convert to lower case, since the difference between if(b<91) b+=32; //the ACSII number between an uppercase alphabet and //lower case alphabet is 32 if(a>b) { y = Allocations[i];             //Swapping Positions Allocations[i]=Allocations[i+1]; Allocations[i+1]=y;

}                                      }                      }

cout<<"\nSorted: {"; for(i=0;i<5;i++){ cout<>c; if (c==1){ goto r;        } }

code