Everything for C Programming Mini Project ! SCARY ar
Date : Tuesday, 25 November 2008
#include 
iostream.h
#include stdio.h
#include stdlib.h
#include conio.h
#include string.h
void introPage(int);
void selectionMenu(int);
void printChar( );
void reverseChar( );
void alternateChar( );
void eraseChar( ) ;
int main(void)
{
      void introPage(int);
      printf("\tComputer Programming 1 Mini-Project\n");
      printf("       =====================================\n");
      printf("\n");
      printf("\tModule Group: EG1005-A8\n");
      printf("\tTasks & Members:\n");
      printf("\n\n\n");
      printf("\tprintChar    --- Quek Sin Wei (086163j)\n");
      printf("\treverseChar    --- Quek Sin Wei (086163j)\n");
      printf("\talternateChar    --- Quek Sin Wei (086163j)\n");
      printf("\teraseChar    --- Quek Sin Wei (086163j)\n\n");
      void selectionMenu(void);
int choice;
char t[22];
strcpy (t,"Quek Sin Wei (086163j)");
do{
      _sleep (3000);
      system("cls");
      printf("\tComputer Programming 1 Mini Project\n");
      printf("       =====================================\n");
      printf("\n\n");
      printf("\t1.printChar.\n");
      printf("\t2.reverseChar.\n");
      printf("\t3.alternateChar.\n");
      printf("\t4.eraseChar.\n");
      printf("\t5.Exit.\n");
      printf("\tEnter Your selection:");
      scanf("%d",&choice);
      printf("\tYour selection is %d\n",choice);
      if (choice == 1)
      {
        printChar();
      }
      else if(choice == 2)
      {
      reverseChar();
      }
      else if (choice ==3)
      {
      alternateChar();
      }
      else if (choice == 4)
      {
      eraseChar();
      }
      else
      if (choice >5)
      {
      system("cls");
      printf("\tComputer Programming 1 Mini Project\n");
      printf("       =====================================\n");
      printf("\n\n\n\tPlease Enter a value from 1 - 5 only!!\n");
      getch();
      }
      }
      while(choice != 5);
      system("cls");
      printf("\tComputer Programming 1 Mini Project\n");
      printf("       =====================================\n");
      printf("\n\n\n");
      printf("\tYou have decided to Exit\n");
      printf("\tThank you for participating in this beta test.\n\t");
      system("pause");
      return 0;
      }
void printChar(void)
{
char t[22];
strcpy (t,"Quek Sin Wei (086163j)");
         _sleep(1000);
         system("cls");
         printf ("\t\tComputer Programming 1 Mini-Project\n");
         printf ("\t    ==========================================");
         printf("\n\n\n\n\n");
         printf("\t\t%c",t[0]);
         _sleep(200);
         printf("%c",t[1]);
         _sleep(200);
         printf("%c",t[2]);
         _sleep(200);
         printf("%c",t[3]);
         _sleep(200);
         printf("%c",t[4]);
         _sleep(200);
         printf("%c",t[5]);
         _sleep(200);
         printf("%c",t[6]);
         _sleep(200);
         printf("%c",t[7]);
         _sleep(200);
         printf("%c",t[8]);
         _sleep(200);
         printf("%c",t[9]);
         _sleep(200);
         printf("%c",t[10]);
         _sleep(200);
         printf("%c",t[11]);
         _sleep(200);
         printf("%c",t[12]);
         _sleep(200);
         printf("%c",t[13]);
         _sleep(200);
         printf("%c",t[14]);
         _sleep(200);
         printf("%c",t[15]);
         _sleep(200);
         printf("%c",t[16]);
         _sleep(200);
         printf("%c",t[17]);
         _sleep(200);
         printf("%c",t[18]);
         _sleep(200);
         printf("%c",t[19]);
         _sleep(200);
         printf("%c",t[20]);
         _sleep(200);
         printf("%c",t[21]);
         _sleep(200);
         printf("%c",t[22]);
         getch();
}
void reverseChar(void)
{
  char t[22];
strcpy (t,"(j361680) ieW niS keuQ");
         _sleep(1000);
         system("cls");
         printf ("\t\tComputer Programming 1 Mini-Project\n");
         printf ("\t    ==========================================");
         printf("\n\n\n\n\n");
         printf("\t\t%c",t[0]);
         _sleep(200);
         printf("%c",t[1]);
         _sleep(200);
         printf("%c",t[2]);
         _sleep(200);
         printf("%c",t[3]);
         _sleep(200);
         printf("%c",t[4]);
         _sleep(200);
         printf("%c",t[5]);
         _sleep(200);
         printf("%c",t[6]);
         _sleep(200);
         printf("%c",t[7]);
         _sleep(200);
         printf("%c",t[8]);
         _sleep(200);
         printf("%c",t[9]);
         _sleep(200);
         printf("%c",t[10]);
         _sleep(200);
         printf("%c",t[11]);
         _sleep(200);
         printf("%c",t[12]);
         _sleep(200);
         printf("%c",t[13]);
         _sleep(200);
         printf("%c",t[14]);
         _sleep(200);
         printf("%c",t[15]);
         _sleep(200);
         printf("%c",t[16]);
         _sleep(200);
         printf("%c",t[17]);
         _sleep(200);
         printf("%c",t[18]);
         _sleep(200);
         printf("%c",t[19]);
         _sleep(200);
         printf("%c",t[20]);
         _sleep(200);
         printf("%c",t[21]);
         _sleep(200);
         printf("%c",t[22]);
         getch();
}
void alternateChar(void)
{
   char t[22];
strcpy (t,"Quek Sin Wei (086163j)");
         _sleep(1000);
         system("cls");
         printf ("\t\tComputer Programming 1 Mini-Project\n");
         printf ("\t    ==========================================");
         printf("\n\n\n\n\n");
         printf("\t\t%c",t[0]);
         _sleep(200);
         printf("%c",t[4]);
         _sleep(200);
         printf("%c",t[2]);
         _sleep(200);
         printf("%c",t[4]);
         _sleep(200);
         printf("%c",t[5]);
         _sleep(200);
         printf("%c",t[4]);
         _sleep(200);
         printf("%c",t[7]);
         _sleep(200);
         printf("%c",t[4]);
         _sleep(200);
         printf("%c",t[9]);
         _sleep(200);
         printf("%c",t[4]);
         _sleep(200);
         printf("%c",t[11]);
         _sleep(200);
         printf("%c",t[4]);
         _sleep(200);
         printf("%c",t[13]);
         _sleep(200);
         printf("%c",t[14]);
         _sleep(200);
         printf("%c",t[4]);
         _sleep(200);
         printf("%c",t[16]);
         _sleep(200);
         printf("%c",t[4]);
         _sleep(200);
         printf("%c",t[18]);
         _sleep(200);
         printf("%c",t[4]);
         _sleep(200);
         printf("%c",t[20]);
         _sleep(200);
         printf("%c\n",t[21]);
         printf("\t\t %c",t[1]);
         _sleep(200);
         printf("%c",t[4]);
         _sleep(200);
         printf("%c",t[3]);
         _sleep(200);
         printf("%c",t[4]);
         _sleep(200);
         printf("%c",t[6]);
         _sleep(200);
         printf("%c",t[4]);
         _sleep(200);
         printf("%c",t[8]);
         _sleep(200);
         printf("%c",t[4]);
         _sleep(200);
         printf("%c",t[10]);
         _sleep(200);
         printf("%c",t[4]);
         _sleep(200);
         printf("%c",t[4]);
         _sleep(200);
         printf("%c",t[4]);
         _sleep(200);
         printf("%c",t[4]);
         _sleep(200);
         printf("%c",t[15]);
         _sleep(200);
         printf("%c",t[4]);
         _sleep(200);
         printf("%c",t[17]);
         _sleep(200);
         printf("%c",t[4]);
         _sleep(200);
         printf("%c",t[19]);
         getch();
         }
void eraseChar( )
{
     int count;
     char t[22];
     strcpy (t,"Quek Sin Wei (086163j)");
     _sleep(1000);
     system("cls");
     printf("\tComputer Programming 1 Mini Project\n");
      printf("       =====================================\n");
     printf("\n\n\t\t%s\n\n",t);
     printf("\t\t%s",t);
for (count=strlen(t)-1;count>=0;count--)
{
printf("\b \b");
_sleep(500);
}
}
Baby,top. || 
1:36 am