void nextscreen() { clrscr(); int x,y,z; for(x=1;x<=77;x++) { gotoxy(2+x,1);textcolor(RED);cprintf("Í"); delay (10); gotoxy(2+x,21);textcolor(RED);cprintf("Í"); delay (10); } for(y=1;y<=20;y++) { gotoxy(3,1+y);textcolor(RED);cprintf("º"); delay (10); gotoxy(79,1+y);textcolor(RED);cprintf("º"); delay (10); } gotoxy(3,1);textcolor(RED);cprintf("É"); gotoxy(3,21);textcolor(RED);cprintf("È"); gotoxy(79,1);textcolor(RED);cprintf("»"); gotoxy(79,21);textcolor(RED);cprintf("¼"); } void menu() { nextscreen(); nextscreen2(); int choice,a,b,n,y,sum=0,subtraction=0,multiplication=0,division=0,z; gotoxy(30,5);textcolor(YELLOW);cprintf("W E L C O M E ! ! !"); gotoxy(26,6);textcolor(YELLOW);cprintf("Select operation you like to Try!"); gotoxy(25,8);textcolor(YELLOW+BLINK);cprintf("[A] for the ADDITION"); gotoxy(25,9);textcolor(GREEN);cprintf("[B] for the SUBTRACTION"); gotoxy(25,10);textcolor(LIGHTMAGENTA+BLINK);cprintf("[C] for the MULTIPLICATION"); gotoxy(25,11);textcolor(LIGHTBLUE);cprintf("[D] for the DIVISION"); gotoxy(25,12);textcolor(RED+BLINK);cprintf("[E] for the Exit"); getch(); clrscr(); gotoxy(25,14);textcolor(CYAN);cprintf("Enter your choice operation here:"); scanf("%s",&choice);
switch(choice) { case 'A':
clrscr();
nextscreen(); nextscreen2(); gotoxy(25,5);textcolor(RED);cprintf("A.] A D D I T I O N"); gotoxy(25,6);textcolor(RED);cprintf("Enter number/s:"); scanf("%d",&a);
gotoxy(25,8);textcolor(BLUE);cprintf("Enter other number/s:"); scanf("%d",&b); sum=a+b; gotoxy(25,10);textcolor(YELLOW+BLINK);cprintf("The Sum of two numbers is: %d",sum); gotoxy(25,12);textcolor(CYAN);cprintf("W O W !!!\n"); gotoxy(25,14);textcolor(LIGHTBLUE);cprintf("You want to try the others?"); scanf("%s",&z); menu(); getch();
break; }
switch(choice) { case 'B': clrscr(); nextscreen(); nextscreen2(); gotoxy(25,5);textcolor(YELLOW);cprintf("B.] S U B T R A C T I O N"); gotoxy(25,6);textcolor(RED);cprintf("Enter number/s:"); scanf("%d",&a); gotoxy(25,8);textcolor(LIGHTCYAN);cprintf("Enter other number/s:"); scanf("%d",&b);
subtraction=a-b; gotoxy(25,10);textcolor(YELLOW+BLINK);cprintf(" The Subtraction of two numbers is: %d",subtraction); gotoxy(25,12);textcolor(CYAN);cprintf("W O W !!!"); gotoxy(25,14);textcolor(LIGHTBLUE);cprintf("You want to try the others?"); scanf("%s",&z); menu(); getch();
break; }
switch(choice) { case 'C': clrscr(); nextscreen(); nextscreen2(); gotoxy(25,5);textcolor(YELLOW);cprintf("C.] M U L T I P L I C A T I O N"); gotoxy(25,6);textcolor(RED);cprintf("Enter number/s:"); scanf("%d",&a); gotoxy(25,8);textcolor(BLUE);cprintf("Enter other number/s:"); scanf("%d",&b); multiplication=a*b; gotoxy(25,10);textcolor(YELLOW+BLINK);cprintf("The Muliplication of two number is: %d",multiplication); gotoxy(25,12);textcolor(CYAN);cprintf("W O W !!!"); gotoxy(25,14);textcolor(GREEN);cprintf("You want to try the others?"); scanf("%s",&z); menu(); getch();
break; }
switch(choice) { case 'D': clrscr(); nextscreen(); nextscreen2(); gotoxy(25,5);textcolor(YELLOW);cprintf("D.] D I V I S I O N"); gotoxy(25,6);textcolor(LIGHTRED);cprintf("Enter number/s:"); scanf("%d",&a); gotoxy(25,8);textcolor(LIGHTCYAN);cprintf("Enter other number/s:"); scanf("%d",&b); division=a/b; gotoxy(25,10);textcolor(YELLOW+BLINK);cprintf("The Division of two numbers is: %d",division); gotoxy(25,12);textcolor(CYAN);cprintf("W O W !!!"); gotoxy(25,14);textcolor(LIGHTGREEN);cprintf("You want to try the others?"); scanf("%s",&z); menu(); getch();
break; }
switch(choice) { case'E': getch(); clrscr(); gotoxy(15,18);textcolor(CYAN);cprintf("Thank you!!! GOD BLESS!!!Bye...Bye...Bye...");
case 1: Bonus=0.10*Salary; Sum=Salary+Bonus; printf("\n\tEmployees Bonus is \"P%d",Bonus); printf("\n\nEmployees will receive a salary of \"P%d\"",Sum); break; case 2: Bonus=0.20*Salary; Sum=Salary+Bonus; printf("\n\tEmployees Bonus is \"P%d",Bonus); printf("\n\nEmployees will receive a salary of \"P%d\"",Sum); break; case 3: Bonus=0.20*Salary; Sum=Salary+Bonus; printf("\n\tEmployees bonus is \"P%d",Bonus); printf("\n\nEmployees will receive a salary of \"P%d\"",Sum); break; case 4: Bonus=0.10*Salary; Sum=Salary+Bonus; printf("\n\tEmployees bonus is \"P%d",Bonus); printf("\n\nEmployees will receive a salary of \"P%d\"",Sum); break; case 5: Bonus=0.50*Salary; Sum=Salary+Bonus; printf("\n\tEmployees bonus is \"P%d",Bonus); printf("\n\nEmployees will receive a salary of \"P%d\"",Sum); break; case 6: Bonus=0.50*Salary; Sum=Salary+Bonus; printf("\n\tEmployees bonus is \"P%d",Bonus); printf("\n\nEmployees will receive a salary of \"P%d\"",Sum); break;
case 7: Bonus=0.50*Salary; Sum=Salary+Bonus; printf("\n\tEmployees bonus is \"P%d",Bonus); printf("\n\nEmployees will receive a salary of \"P%d\"",Sum); break; case 8: Bonus=0.50*Salary; Sum=Salary+Bonus; printf("\n\tEmployees bonus is \"P%d",Bonus); printf("\n\nEmployees will receive a salary of \"P%d\"",Sum); break; case 9: Bonus=0.50*Salary; Sum=Salary+Bonus; printf("\n\tEmployees bonus is \"P%d",Bonus); printf("\n\nEmployees will receive a salary of \"P%d\"",Sum); break;
case 10: Bonus=0.50*Salary; Sum=Salary+Bonus; printf("\n\tEmployees bonus is \"P%d",Bonus); printf("\n\nEmployees will receive a salary of \"P%d\"",Sum); break; } if(Years>=11) { Bonus=0.75*Salary; Sum=Salary+Bonus; printf("\n\tEmployees bonus is \"P%d",Bonus); printf("\n\n\tEmployees will receive a salary of \"P%d\"",Sum); } printf("\n\n\t\tGOOD JOB!! KEEP UP THE GOOD WORK!!! ");
gotoxy(30,7);printf(" W E L C O M E "); gotoxy(36,9);printf("T O"); gotoxy(35,10);printf("T H E"); gotoxy(33,11);printf("W O R L D"); gotoxy(27,13);printf("P R O G R A M M I N G"); gotoxy(20,5);printf("°");gotoxy(55,5);printf("°"); gotoxy(20,6);printf("°");gotoxy(55,6);printf("°"); gotoxy(20,7);printf("°");gotoxy(55,7);printf("°"); gotoxy(20,8);printf("°");gotoxy(55,8);printf("°"); gotoxy(20,9);printf("°");gotoxy(55,9);printf("°"); gotoxy(20,10);printf("°");gotoxy(55,10);printf("°"); gotoxy(20,11);printf("°");gotoxy(55,11);printf("°"); gotoxy(20,12);printf("°");gotoxy(55,12);printf("°"); gotoxy(20,13);printf("°");gotoxy(55,13);printf("°"); gotoxy(20,14);printf("°");gotoxy(55,14);printf("°"); gotoxy(20,15);printf("°");gotoxy(55,15);printf("°"); gotoxy(20,16);printf("°");gotoxy(55,16);printf("°"); gotoxy(21,5);printf("°");gotoxy(20,17);printf("°"); gotoxy(22,5);printf("°");gotoxy(21,17);printf("°"); gotoxy(23,5);printf("°");gotoxy(22,17);printf("°"); gotoxy(24,5);printf("°");gotoxy(23,17);printf("°"); gotoxy(25,5);printf("°");gotoxy(24,17);printf("°"); gotoxy(26,5);printf("°");gotoxy(25,17);printf("°"); gotoxy(27,5);printf("°");gotoxy(26,17);printf("°"); gotoxy(28,5);printf("°");gotoxy(27,17);printf("°"); gotoxy(29,5);printf("°");gotoxy(28,17);printf("°"); gotoxy(30,5);printf("°");gotoxy(29,17);printf("°"); gotoxy(31,5);printf("°");gotoxy(30,17);printf("°"); gotoxy(32,5);printf("°");gotoxy(31,17);printf("°"); gotoxy(33,5);printf("°");gotoxy(32,17);printf("°"); gotoxy(34,5);printf("°");gotoxy(33,17);printf("°"); gotoxy(35,5);printf("°");gotoxy(34,17);printf("°"); gotoxy(36,5);printf("°");gotoxy(35,17);printf("°"); gotoxy(37,5);printf("°");gotoxy(36,17);printf("°"); gotoxy(38,5);printf("°");gotoxy(37,17);printf("°"); gotoxy(39,5);printf("°");gotoxy(38,17);printf("°"); gotoxy(40,5);printf("°");gotoxy(39,17);printf("°"); gotoxy(41,5);printf("°");gotoxy(40,17);printf("°"); gotoxy(42,5);printf("°");gotoxy(41,17);printf("°"); gotoxy(43,5);printf("°");gotoxy(42,17);printf("°"); gotoxy(44,5);printf("°");gotoxy(43,17);printf("°"); gotoxy(45,5);printf("°");gotoxy(44,17);printf("°"); gotoxy(46,5);printf("°");gotoxy(45,17);printf("°"); gotoxy(47,5);printf("°");gotoxy(46,17);printf("°"); gotoxy(48,5);printf("°");gotoxy(47,17);printf("°"); gotoxy(49,5);printf("°");gotoxy(48,17);printf("°"); gotoxy(50,5);printf("°");gotoxy(49,17);printf("°"); gotoxy(51,5);printf("°");gotoxy(50,17);printf("°"); gotoxy(52,5);printf("°");gotoxy(51,17);printf("°"); gotoxy(53,5);printf("°");gotoxy(52,17);printf("°"); gotoxy(54,5);printf("°");gotoxy(53,17);printf("°"); gotoxy(54,17);printf("°"); gotoxy(55,17);printf("°"); getch(); }