MINI PROJECT 2nd QUESTION

#include<stdio.h>
#include<conio.h>
#include<process.h>
int menu()
{
 int choice;
 printf("****MENU****");
 printf("\n 1.input the faculty salary for faculty:");
 printf("\n 2. input the non-academic staff for sarlary:");
 printf("\n 3. input the consultants for sarlary");
 printf("\n 4. input the daily wagers/skilled worked for sarlary:");
 printf("\n 5. input the security personals for sarlary:");
 printf("\n 6. exit for program:");
 printf("\n input your choice:");
 scanf("%d",&choice) ;
 return choice;
 }
 void main()
 {
 clrscr();
  int s;
   while(1){
   switch(menu()){
   case 1:
              printf("input the asst.professor:");
              scanf("%d",&s);
              printf("input the associate professor:");
              scanf("%d",&s);
              printf("input the professir:");
               scanf("%d",&s) ;
                 printf("%d",s);
               break;
   case 2:
               printf("input the non academic: ");
               scanf("%d",&s);
               printf("non academic=%d",s);
              break;

  case 3:
            printf("input the consultant:");
scanf("%d",&s);
printf("consultant=%d",s) ;
         break;
   case 4:
printf("input the daily wagers:");
           scanf("%d",&s);
           printf("daaily wagers=%d",s);
break;
   case 5:
            printf("input the security personal:");
scanf("%d",&s) ;
             printf("%d",s);
break;
  case 6:
           exit(1);
   default:
             printf("invaild choice:");
  }
  }
  }

Comments

Post a Comment

Popular Posts