Breaking News

PROJECT SCHOOL FEE ENQUIRY

   1: //*********************************************************



   2: //    PROJECT SCHOOL FEE ENQUIRY



   3: //**********************************************************



   4:  



   5: //**********************************************************



   6: //    INCLUDED HEADER FILES



   7: //**********************************************************



   8:  



   9: #include<iostream.h>



  10: #include <fstream.h>



  11: #include <string.h>



  12: #include <stdlib.h>



  13: #include <stdio.h>



  14: #include <ctype.h>



  15: #include <conio.h>



  16: #include <dos.h>



  17: #include <iomanip.h>



  18:  



  19: int i,j,li,lp,rec,valid;



  20: void help();



  21: //*********************************************************



  22: //                GLOBAL VARIABLE DECLARATIONS



  23: //*********************************************************



  24:  



  25: //int i,j,li,lp;



  26: char ch,choice;



  27:  



  28:  



  29: //*********************************************************



  30: // THIS CLASS DRAWS LINES, BOXES, ETC.



  31: //**********************************************************



  32:  



  33: class DRAW



  34: {



  35:     public :



  36:             void LINE_HOR(int, int, int, char) ;



  37:             void LINE_VER(int, int, int, char) ;



  38:             void BOX(int,int,int,int,char) ;



  39: } ;



  40:  



  41:  



  42: //**********************************************************



  43: // THIS CLASS CONTROLS ALL THE FUNCTIONS RELATED TO FEES



  44: //**********************************************************



  45:  



  46: class FEE



  47: {



  48:     private :



  49:             int  Class ;



  50:             float tuition, ac, science, computer, activity ;



  51:             void DISPLAY(int) ;



  52:             void MODIFY_RECORD(int, float, float, float, float, float) ;



  53:  



  54:     public :



  55:             void ADDITION(void) ;



  56:             void MODIFICATION(void) ;



  57:             void FEE_SLIP(void) ;



  58:             void LIST(void) ;



  59:             void HELP(void);



  60: }fee ;



  61:  



  62: //**********************************************************



  63: //                  MAIN MENU FUNCTION



  64: //**********************************************************



  65:  



  66: void mainmenu()



  67: {    clrscr();



  68:     textcolor(WHITE);



  69:     for(li=30;li<=50;li++)



  70:     {



  71:         textcolor(WHITE);



  72:         gotoxy(li,14);



  73:         delay(30);



  74:         printf("*");



  75:     }



  76:     for(li=50;li>=30;li--)



  77:     {



  78:         textcolor(WHITE);



  79:         gotoxy(li,30);



  80:         delay(30);



  81:         printf("*");



  82:     }



  83:     for(lp=15;lp<30;lp++)



  84:     {



  85:         gotoxy(30,lp);



  86:         delay(100);



  87:         printf("|");



  88:     }



  89:     for(lp=29;lp>=15;lp--)



  90:     {



  91:         gotoxy(50,lp);



  92:         delay(100);



  93:         printf("|");



  94:     }



  95:     gotoxy(15,10);



  96:     textcolor(LIGHTGRAY);



  97:     cprintf("Press the corresponding Keys for the desired action");



  98:     gotoxy(35,16);



  99:     textcolor(BROWN);



 100:     cprintf("F: FEE SLIP");



 101:     gotoxy(35,19);



 102:     textcolor(LIGHTMAGENTA);



 103:     cprintf("M: MODIFY");



 104:     gotoxy(35,22);



 105:     textcolor(LIGHTBLUE);



 106:     cprintf("L: LIST");



 107:     gotoxy(35,25);



 108:     textcolor(LIGHTRED);



 109:     cprintf("H: HELP");



 110:     gotoxy(35,28);



 111:     textcolor(GREEN);



 112:     cprintf("Q: QUIT");



 113:     choice=getch();



 114:     ch=toupper(choice);



 115:     switch(ch)



 116:     {



 117:         case'F':fee.FEE_SLIP();



 118:             break;



 119:         case'M':fee.MODIFICATION();



 120:             break;



 121:         case'L':fee.LIST();



 122:             break;



 123:         case'H':fee.HELP();



 124:             break;



 125:         case'Q':exit(0);



 126:             break;



 127:         default:gotoxy(33,40);



 128:             cout<<"



 129:  



 130: Illegal Choice 



 131:  Press any key to return to Main Menu";



 132:             getch();



 133:             mainmenu();



 134:     }



 135: }     //Main Menu Function End



 136:  



 137:  



 138: //**********************************************************



 139: // FUNCTION TO DRAW HORIZONTAL LINE



 140: //**********************************************************



 141:  



 142: void DRAW :: LINE_HOR(int column1, int column2, int row, char c)



 143: {



 144:     for ( column1; column1<=column2; column1++ )



 145:     {



 146:         gotoxy(column1,row) ;



 147:         cout <<c ;



 148:     }



 149: }



 150:  



 151:  



 152: //**********************************************************



 153: // FUNCTION TO DRAW VERTICAL LINE



 154: //**********************************************************



 155:  



 156: void DRAW :: LINE_VER(int row1, int row2, int column, char c)



 157: {



 158:     for ( row1; row1<=row2; row1++ )



 159:     {



 160:         gotoxy(column,row1) ;



 161:         cout <<c ;



 162:     }



 163: }



 164:  



 165:  



 166: //**********************************************************



 167: // FUNCTION TO DRAW BOX LINE



 168: //**********************************************************



 169:  



 170: void DRAW :: BOX(int column1, int row1, int column2, int row2, char c)



 171: {



 172:     char ch=218 ;



 173:     char c1, c2, c3, c4 ;



 174:     char l1=196, l2=179 ;



 175:     if (c == ch)



 176:     {



 177:         c1=218 ;



 178:         c2=191 ;



 179:         c3=192 ;



 180:         c4=217 ;



 181:         l1 = 196 ;



 182:         l2 = 179 ;



 183:     }



 184:     else



 185:     {



 186:         c1=c ;



 187:         c2=c ;



 188:         c3=c ;



 189:         c4=c ;



 190:         l1 = c ;



 191:         l2 = c ;



 192:     }



 193:     gotoxy(column1,row1) ;



 194:     cout <<c1 ;



 195:     gotoxy(column2,row1) ;



 196:     cout <<c2 ;



 197:     gotoxy(column1,row2) ;



 198:     cout <<c3 ;



 199:     gotoxy(column2,row2) ;



 200:     cout <<c4 ;



 201:     column1++ ;



 202:     column2-- ;



 203:     LINE_HOR(column1,column2,row1,l1) ;



 204:     LINE_HOR(column1,column2,row2,l1) ;



 205:     column1-- ;



 206:     column2++ ;



 207:     row1++ ;



 208:     row2-- ;



 209:     LINE_VER(row1,row2,column1,l2) ;



 210:     LINE_VER(row1,row2,column2,l2) ;



 211: }



 212:  



 213:  



 214: //**********************************************************



 215: // FUNCTION TO ADD FEE STRUCTURE IN FEE FILE



 216: //**********************************************************



 217:  



 218: void FEE :: ADDITION(void)



 219: {



 220:     fstream file ;



 221:     file.open("FEE.DAT", ios::in) ;



 222:     if (!file.fail())



 223:         return ;



 224:     file.close() ;



 225:     file.open("FEE.DAT", ios::app) ;



 226:     for (int i=1; i<=12; i++)



 227:     {



 228:         Class   = i ;



 229:         tuition  = 0.0 ;



 230:         ac      = 0.0 ;



 231:         science = 0.0 ;



 232:         computer= 0.0 ;



 233:         activity= 0.0 ;



 234:         file.write((char *) this, sizeof(FEE)) ;



 235:     }



 236:     file.close() ;



 237:     MODIFY_RECORD(12,450,50,60,60,50) ;



 238:     MODIFY_RECORD(11,450,50,60,60,50) ;



 239:     MODIFY_RECORD(10,350,50,30,60,50) ;



 240:     MODIFY_RECORD(9,350,50,20,60,50) ;



 241:     MODIFY_RECORD(8,300,50,20,40,50) ;



 242:     MODIFY_RECORD(7,300,50,20,40,50) ;



 243:     MODIFY_RECORD(6,300,50,20,40,50) ;



 244:     MODIFY_RECORD(5,250,50,0,40,40) ;



 245:     MODIFY_RECORD(4,250,50,0,40,40) ;



 246:     MODIFY_RECORD(3,250,50,0,40,40) ;



 247:     MODIFY_RECORD(2,250,50,0,40,40) ;



 248:     MODIFY_RECORD(1,250,50,0,40,40) ;



 249: }



 250:  



 251:  



 252: //**********************************************************



 253: // FUNCTION TO DISPLAY TOTAL FEE AS LIST



 254: //**********************************************************



 255:  



 256: void FEE :: LIST()



 257: {



 258:     clrscr() ;



 259:     DRAW d ;



 260:     textcolor(MAGENTA);



 261:     d.BOX(1,2,80,24,218) ;



 262:     gotoxy(27,3) ;



 263:     cout <<"TOTAL FEES FOR THE CLASSES" ;



 264:     d.LINE_HOR(2,79,4,196) ;



 265:     gotoxy(5,5) ;



 266:     cout <<"CLASS             TOTAL FEES" ;



 267:     d.LINE_HOR(2,79,6,196) ;



 268:     d.LINE_HOR(2,79,22,196) ;



 269:     float total ;



 270:     int row=8 ;



 271:     fstream file ;



 272:     file.open("FEE.DAT", ios::in) ;



 273:     while (file.read((char *) this, sizeof(FEE)))



 274:     {



 275:         total = tuition + ac + science + computer + activity ;



 276:         gotoxy(6,row) ;



 277:         cout <<Class ;



 278:         gotoxy(23,row) ;



 279:         cout <<total ;



 280:         row++ ;



 281:     }



 282:     file.close() ;



 283:     gotoxy(5,23) ;



 284:     cout <<"Press any key to continue............." ;



 285:     getch() ;



 286:     mainmenu();



 287: }



 288:  



 289:  



 290: //**********************************************************



 291: // FUNCTION TO DISPLAY THE RECORD FOR THE GIVEN CLASS



 292: //**********************************************************



 293:  



 294: void FEE :: DISPLAY(int tclass)



 295: {



 296:     fstream file ;



 297:     file.open("FEE.DAT", ios::in) ;



 298:     while (file.read((char *) this, sizeof(FEE)))



 299:     {



 300:         if (Class == tclass)



 301:         {



 302:             gotoxy(5,5) ;



 303:             cout <<"Class : " <<Class ;



 304:             gotoxy(5,7) ;



 305:             cout <<"~~~~~~~~~~~~" ;



 306:             gotoxy(5,8) ;



 307:             cout <<"Tution Fee  : " <<tuition ;



 308:             gotoxy(5,9) ;



 309:             cout <<"Annual charges Fee  : " <<ac ;



 310:             gotoxy(5,10) ;



 311:             cout <<"Science Fee : " <<science ;



 312:             gotoxy(5,11) ;



 313:             cout <<"Computer Fee: " <<computer ;



 314:             gotoxy(5,12) ;



 315:             cout <<"Activity Fee : " <<activity ;



 316:             break ;



 317:         }



 318:     }



 319:     file.close() ;



 320: }



 321:  



 322:  



 323: //**********************************************************



 324: // FUNCTION TO MODIFY THE FEE RECORD FOR THE GIVEN DATA



 325: //**********************************************************



 326:  



 327: void FEE :: MODIFY_RECORD(int tclass, float ttution, float tac, float



 328: tscience, float tcomputer, float tactivity)



 329: {



 330:     fstream file ;



 331:     file.open("FEE.DAT", ios::in) ;



 332:     fstream temp ;



 333:     temp.open("temp.dat", ios::out) ;



 334:     file.seekg(0,ios::beg) ;



 335:     while (!file.eof())



 336:     {



 337:         file.read((char *) this, sizeof(FEE)) ;



 338:         if (file.eof())



 339:             break ;



 340:         if (tclass == Class)



 341:         {



 342:             Class   = tclass ;



 343:             tuition  = ttution ;



 344:             ac      = tac ;



 345:             science = tscience ;



 346:             computer= tcomputer ;



 347:             activity= tactivity ;



 348:             temp.write((char *) this, sizeof(FEE)) ;



 349:         }



 350:         else



 351:             temp.write((char *) this, sizeof(FEE)) ;



 352:     }



 353:     file.close() ;



 354:     temp.close() ;



 355:     file.open("FEE.DAT", ios::out) ;



 356:     temp.open("temp.dat", ios::in) ;



 357:     temp.seekg(0,ios::beg) ;



 358:     while (!temp.eof())



 359:     {



 360:         temp.read((char *) this, sizeof(FEE)) ;



 361:         if (temp.eof())



 362:             break ;



 363:         file.write((char *) this, sizeof(FEE)) ;



 364:     }



 365:     file.close() ;



 366:     temp.close() ;



 367: }



 368:  



 369:  



 370: //**********************************************************



 371: // FUNCTION TO GIVE DATA TO MODIFY THE FEE RECORD



 372: //**********************************************************



 373:  



 374: void FEE :: MODIFICATION(void)



 375: {



 376:     clrscr() ;



 377:     textcolor(WHITE);



 378:     char  ch, t1[10] ;



 379:     int   valid=0, t=0, tclass=0 ;



 380:     float t2=0 ;



 381:     do



 382:     {



 383:         valid = 1 ;



 384:         gotoxy(5,25) ; clreol() ;



 385:         cout <<"Press <ENTER> for EXIT" ;



 386:         gotoxy(5,5) ; clreol() ;



 387:         cout <<"Enter Class for the Modification of the Fee Structure : " ;



 388:         gets(t1) ;



 389:         t = atoi(t1) ;



 390:         tclass = t ;



 391:         if (strlen(t1) == 0)



 392:             return ;



 393:         if (tclass < 1 || tclass > 12)



 394:         {



 395:             valid = 0 ;



 396:             gotoxy(5,25) ; clreol() ;



 397:             cout <<"7Enter correctly" ;



 398:             getch() ;



 399:         }



 400:     } while (!valid) ;



 401:     clrscr() ;



 402:     gotoxy(71,1) ;



 403:     cout <<"<0>=Exit" ;



 404:     DISPLAY(tclass) ;



 405:     gotoxy(5,25) ; clreol() ;



 406:     do



 407:     {



 408:         gotoxy(5,15) ; clreol() ;



 409:         cout <<"Do you want to modify the fee structure (y/n) : " ;



 410:         ch = getche() ;



 411:         if (ch == '0')



 412:             return ;



 413:         ch = toupper(ch) ;



 414:     } while (ch != 'N' && ch != 'Y') ;



 415:     if (ch == 'N')



 416:         mainmenu();



 417:     float ttution=0.0, tac=0.0, tscience=0.0, tcomputer=0.0, tactivity=0.0 



 418: ;



 419:     gotoxy(5,13) ; clreol() ;



 420:     gotoxy(5,17) ;



 421:     cout <<"Tuition Fee : " ;



 422:     gotoxy(5,18) ;



 423:     cout <<"Annual Charges Fee : " ;



 424:     gotoxy(5,19) ;



 425:     cout <<"Science Fee : " ;



 426:     gotoxy(5,20) ;



 427:     cout <<"Computer Fee : " ;



 428:     gotoxy(5,21) ;



 429:     cout <<"Activity Fee : " ;



 430:     int modified = 5 ;



 431:     fstream file ;



 432:     file.open("FEE.DAT", ios::in) ;



 433:     while (file.read((char *) this, sizeof(FEE)))



 434:         if (Class == tclass)



 435:             break ;



 436:     file.close() ;



 437:     do



 438:     {



 439:         valid = 1 ;



 440:         gotoxy(5,27) ; clreol() ;



 441:         cout <<"Enter TUITION FEE or Press <ENTER> for no change" ;



 442:         gotoxy(19,17) ; clreol() ;



 443:         gets(t1) ;



 444:         t2 = atof(t1) ;



 445:         ttution = t2 ;



 446:         if (t1[0] == '0')



 447:             return;



 448:         if (strlen(t1) == 0)



 449:             break ;



 450:         if (ttution > 1000)



 451:         {



 452:             valid = 0 ;



 453:             gotoxy(5,27) ; clreol() ;



 454:             cout <<"7Enter correctly" ;



 455:             getch() ;



 456:         }



 457:     } while (!valid) ;



 458:     if (strlen(t1) == 0)



 459:     {



 460:         modified-- ;



 461:         ttution = tuition ;



 462:         gotoxy(20,17) ;



 463:         cout <<ttution ;



 464:     }



 465:     do



 466:     {



 467:         valid = 1 ;



 468:         gotoxy(5,27) ; clreol() ;



 469:         cout <<"Enter ANNUAL CHARGES fee or Press <ENTER> for no change" ;



 470:         gotoxy(26,18) ; clreol() ;



 471:         gets(t1) ;



 472:         t2 = atof(t1) ;



 473:         tac = t2 ;



 474:         if (t1[0] == '0')



 475:             return ;



 476:         if (strlen(t1) == 0)



 477:             break ;



 478:         if (tac > 1000)



 479:         {



 480:             valid = 0 ;



 481:             gotoxy(5,27) ; clreol() ;



 482:             cout <<"7Enter correctly" ;



 483:             getch() ;



 484:         }



 485:     } while (!valid) ;



 486:     if (strlen(t1) == 0)



 487:     {



 488:         modified-- ;



 489:         tac = ac ;



 490:         gotoxy(26,18) ;



 491:         cout <<tac ;



 492:     }



 493:     do



 494:     {



 495:         valid = 1 ;



 496:         gotoxy(5,27) ; clreol() ;



 497:         cout <<"Enter SCIENCE FEES or Press <ENTER> for no change" ;



 498:         gotoxy(19,19) ; clreol() ;



 499:         gets(t1) ;



 500:         t2 = atof(t1) ;



 501:         tscience = t2 ;



 502:         if (t1[0] == '0')



 503:             return ;



 504:         if (strlen(t1) == 0)



 505:             break ;



 506:         if (tscience > 1000)



 507:         {



 508:             valid = 0 ;



 509:             gotoxy(5,27) ; clreol() ;



 510:             cout <<"7Enter correctly" ;



 511:             getch() ;



 512:         }



 513:     } while (!valid) ;



 514:     if (strlen(t1) == 0)



 515:     {



 516:         modified-- ;



 517:         tscience = science ;



 518:         gotoxy(19,19) ;



 519:         cout <<tscience ;



 520:     }



 521:     do



 522:     {



 523:         valid = 1 ;



 524:         gotoxy(5,27) ; clreol() ;



 525:         cout <<"Enter COMPUTER FEES or Press <ENTER> for no change" ;



 526:         gotoxy(19,20) ; clreol() ;



 527:         gets(t1) ;



 528:         t2 = atof(t1) ;



 529:         tcomputer = t2 ;



 530:         if (t1[0] == '0')



 531:             return ;



 532:         if (strlen(t1) == 0)



 533:             break ;



 534:         if (tcomputer > 1000)



 535:         {



 536:             valid = 0 ;



 537:             gotoxy(5,27) ; clreol() ;



 538:             cout <<"7Enter correctly" ;



 539:             getch() ;



 540:         }



 541:     } while (!valid) ;



 542:     if (strlen(t1) == 0)



 543:     {



 544:         modified-- ;



 545:         tcomputer = computer ;



 546:         gotoxy(19,20) ;



 547:         cout <<tcomputer ;



 548:     }



 549:     do



 550:     {



 551:         valid = 1 ;



 552:         gotoxy(5,27) ; clreol() ;



 553:         cout <<"Enter ACTIVITY FEES or Press <ENTER> for no change" ;



 554:         gotoxy(19,21) ; clreol() ;



 555:         gets(t1) ;



 556:         t2 = atof(t1) ;



 557:         tactivity = t2 ;



 558:         if (t1[0] == '0')



 559:             return;



 560:         if (strlen(t1) == 0)



 561:             break;



 562:         if (tactivity > 1000)



 563:         {



 564:             valid = 0 ;



 565:             gotoxy(5,27) ; clreol() ;



 566:             cout <<"7Enter correctly" ;



 567:             getch() ;



 568:         }



 569:     } while (!valid) ;



 570:     if (strlen(t1) == 0)



 571:     {



 572:         modified-- ;



 573:         tactivity = activity ;



 574:         gotoxy(19,21) ;



 575:         cout <<tactivity ;



 576:     }



 577:     if (!modified)



 578:         mainmenu();



 579:     gotoxy(5,27) ; clreol() ;



 580:     do



 581:     {



 582:         gotoxy(5,25) ; clreol() ;



 583:         cout <<"Do you want to save (y/n) : " ;



 584:         ch = getche() ;



 585:         if (ch == '0')



 586:             return ;



 587:         ch = toupper(ch) ;



 588:     } while (ch != 'N' && ch != 'Y') ;



 589:     if (ch == 'N')



 590:         return ;



 591:     MODIFY_RECORD(tclass,ttution,tac,tscience,tcomputer,tactivity);



 592:     gotoxy(5,27) ;



 593:     cout <<"7Record Modified" ;



 594:     gotoxy(5,29) ;



 595:     cout <<"Press any key to continue..........." ;



 596:     getch() ;



 597:     mainmenu();



 598: }



 599:  



 600:  



 601: //**********************************************************



 602: // FUNCTION TO DISPLAY THE FEE SLIP FOR THE CLASS



 603: //**********************************************************



 604:  



 605: void FEE :: FEE_SLIP(void)



 606: {



 607:     clrscr() ;



 608:     textcolor(RED);



 609:     char  ch, t1[10] ;



 610:     int   valid=0, t=0, tclass=0 ;



 611:     do



 612:     {



 613:         valid = 1 ;



 614:         gotoxy(5,25) ; clreol() ;



 615:         cout <<"Press <ENTER> for EXIT" ;



 616:         gotoxy(5,5) ; clreol() ;



 617:         cout <<"Enter Class to see the Fee Structure : " ;



 618:         gets(t1) ;



 619:         t = atoi(t1) ;



 620:         tclass = t ;



 621:         if (strlen(t1) == 0)



 622:             return ;



 623:         if (tclass < 1 || tclass > 12)



 624:         {



 625:             valid = 0 ;



 626:             gotoxy(5,25) ; clreol() ;



 627:             cout <<"7Enter correctly" ;



 628:             getch() ;



 629:         }



 630:     } while (!valid) ;



 631:     char name[26] ;



 632:     do



 633:     {



 634:         gotoxy(5,25) ; clreol() ;



 635:         cout <<"ENTER NAME OF THE STUDENT" ;



 636:         valid = 1 ;



 637:         gotoxy(5,7) ; clreol() ;



 638:         cout <<"Name : " ;



 639:         gets(name) ;



 640:         if (strlen(name) < 1 || strlen(name) > 25)



 641:         {



 642:             valid = 0 ;



 643:             gotoxy(5,25) ; clreol() ;



 644:             cout <<"



 645: NAME SHOULD NOT BE GREATER THAN 25" ;



 646:             getch() ;



 647:         }



 648:     } while (!valid) ;



 649:     clrscr() ;



 650:     DRAW d ;



 651:     d.BOX(20,2,61,24,987) ;



 652:     gotoxy(24,3) ;



 653:     cout <<"       CARMEL CONVENT SCHOOL      " ;



 654:     int d1, m1, y1 ;



 655:     struct date dt;



 656:     getdate(&dt);



 657:     d1 = dt.da_day ;



 658:     m1 = dt.da_mon ;



 659:     y1 = dt.da_year ;



 660:     gotoxy(45,4) ;



 661:     cout <<"Date: " <<d1 <<"/" <<m1 <<"/" <<y1 ;



 662:     d.LINE_HOR(21,60,5,196) ;



 663:     gotoxy(22,6) ;



 664:     cout <<"NAME  : " <<name ;



 665:     gotoxy(22,7) ;



 666:     cout <<"CLASS : " <<tclass ;



 667:     d.LINE_HOR(21,60,8,196) ;



 668:     gotoxy(21,9) ;



 669:     cout <<"    PARTICULARS               AMOUNT" ;



 670:     d.LINE_HOR(21,60,10,196) ;



 671:     d.LINE_HOR(21,60,22,196) ;



 672:     d.LINE_HOR(46,60,20,196) ;



 673:     gotoxy(25,21) ;



 674:     cout <<"TOTAL" ;



 675:     gotoxy(54,23) ;



 676:     cout <<"CASHIER" ;



 677:     fstream file ;



 678:     file.open("FEE.DAT", ios::in) ;



 679:     while (file.read((char *) this, sizeof(FEE)))



 680:         if (Class == tclass)



 681:             break ;



 682:     file.close() ;



 683:     float total=0.0 ;



 684:     gotoxy(23,12) ;



 685:     cout <<"Tuition fees               " <<setprecision(2) <<tuition ;



 686:     total = total+tuition ;



 687:     gotoxy(23,13) ;



 688:     cout <<"Annual charges fees       " <<setprecision(2) <<ac ;



 689:     total = total+ac ;



 690:     gotoxy(23,14) ;



 691:     cout <<"Science fees              " <<setprecision(2) <<science ;



 692:     total = total+science ;



 693:     gotoxy(23,15) ;



 694:     cout <<"Computer fees             " <<setprecision(2) <<computer ;



 695:     total = total+computer ;



 696:     gotoxy(23,16) ;



 697:     cout <<"Activity fees             " <<setprecision(2) <<activity ;



 698:     total = total+activity ;



 699:     d.LINE_VER(9,21,46,179) ;



 700:     char tt[15] ;



 701:     sprintf(tt,"%f",total) ;



 702:     gotoxy(49,21) ;



 703:     cout <<tt ;



 704:     gotoxy(33,40);



 705:     cout<<"



 706: Press any key to return to the main menu........";



 707:     getch() ;



 708:     mainmenu();



 709: }



 710:  



 711: void FEE::HELP()



 712: {       clrscr();



 713:     textcolor(WHITE);



 714:     cout<<"



 715:  



 716: This is a fee structure program";



 717:     cout<<"



 718:  



 719: It can be used to :  ";



 720:     cout<<"



 721:  



 722: 1. View the fee slip of a student of a class";



 723:     cout<<"



 724:  



 725: 2. Modify the fee structure of the school";



 726:     cout<<"



 727:  



 728: 3. View the fee structure of the school in the form of a



 729: list";



 730:     cout<<"



 731:  



 732: The menu functions are described as follows";



 733:     cout<<"



 734:  



 735: 1. FEE SLIP:  This function displays the fee slip for a 



 736: given



 737: student";



 738:     cout<<"



 739:  



 740:               from the class entered by the user. ";



 741:     cout<<"



 742:  



 743: 2. MODIFY:    This function modifies the fee structure for 



 744: a



 745: give class.";



 746:     cout<<"



 747:  



 748:               The user can change the fees for various 



 749: fields



 750: ";



 751:     cout<<"



 752:  



 753: 3. LIST:      This function displays the list of total fees



 754: for all the";



 755:     cout<<"



 756:  



 757:               classes in the school  ";



 758:     cout<<"



 759:  



 760: If you encounter any problems, just press ctrl+break. You 



 761: will



 762: get out  ";



 763:     cout<<"



 764:  



 765: of the program.";



 766:     getch();



 767:     cout<<"



 768: Press any key to continue...........";



 769:     getch();



 770:     mainmenu();



 771: }



 772:  



 773:  



 774: //**********************************************************



 775: // MAIN FUNCTION TO CREATE MENU AND CALL OTHER FUNCTIONS



 776: //**********************************************************



 777:  



 778: void main()



 779: {



 780:     FEE fee;



 781:     fee.ADDITION();



 782:     clrscr();



 783:     textcolor(MAGENTA);



 784:     for(i=10;i<71;i++)



 785:     {



 786:         textcolor(MAGENTA);



 787:         gotoxy(i,15);



 788:         delay(30);



 789:         printf("/");



 790:     }



 791:     for(i=70;i>=10;i--)



 792:     {



 793:         gotoxy(i,22);



 794:         delay(30);



 795:         printf("\");



 796:     }



 797:     for(j=16;j<=21;j++)



 798:     {



 799:         gotoxy(10,j);



 800:         delay(100);



 801:         printf("-");



 802:     }



 803:     for(j=21;j>=16;j--)



 804:     {



 805:         gotoxy(70,j);



 806:         delay(100);



 807:         printf("-");



 808:     }



 809:     gotoxy(16,17);



 810:     textcolor(BLINK + MAGENTA);



 811:     cprintf("     Welcome To Aanchal's Fee Structure System");



 812:     gotoxy(12,20);



 813:     cprintf("Designed and Coded By Special Technologies (C) 2005-2006");



 814:     gotoxy(36,28);



 815:     textcolor(LIGHTGREEN);



 816:     cprintf("Coded By");



 817:     gotoxy(24,34);



 818:     textcolor(3);



 819:     cprintf("Aanchal Saxena         XII 'B'");



 820:     gotoxy(44,48);



 821:     textcolor(WHITE);



 822:     cprintf("Press Any Key To ..........Continue");



 823:     getch();



 824:     mainmenu();



 825: }


No comments

please write your mail id for contact: