Sunday, August 19, 2012

( Time Table ) Write a Program that tell you Which Faculty will come today in your Class Room

#include<stdio.h>
#include<conio.h>
void main()
{
int a;
clrscr();
printf("\n\n**********************************************************************");
printf("\n\t\tFind Which Faculty will come Today in you Class.");
printf("\n************************************************************************");
printf("\n\n \t\tMonday \t\t= 1");
printf("\n \t\tThusday \t= 2");
printf("\n \t\tWensday \t= 3");
printf("\n \t\tTeuseday \t= 4");

printf("\n \t\tFrieday \t= 5");
printf("\n \t\tSeturday \t= 6");
printf("\n \t\tSunday \t\t= 7");
printf("\n\n\t\t Enter Today's Code= ");
scanf("%d",&a);
printf("\n\n************************************************************************");
if(a==1)
{
printf("\n\tMonday's Lactures");
printf("\n************************************************************************");
printf("\n\n\tLacture 1. Mathematic");
printf("\n\tLacture 2. HTML Lab 3");
printf("\n\tLacture 3. C Lab 2");
printf("\n\n\tLacture 4. C Language");
printf("\n\tLacture 5. BS Communication");
}
if(a==2)
{
printf("\n\tTuesday's Lactures");
printf("\n*********************************************************************");
printf("\n\n\tLacture 1. BS Communication");
printf("\n\tLacture 2. C Lab 2");
printf("\n\tLacture 3. C Language");
printf("\n\n\tLacture 4. Computer Fundamental");
printf("\n\tLacture 5. Mathematic");
}
if(a==3)
{
printf("\n\tWensday's Lactures");
printf("\n*************************************************************************");
printf("\n\n\tLacture 1. Computer Fundamental");
printf("\n\tLacture 2. PCS Lab 2");
printf("\n\tLacture 3. Internet HTML");
printf("\n\n\tLacture 4. Accountancy");
printf("\n\tLacture 5. PCS Lab 2");
}
if(a==4)
{
printf("\n\tThusday's Lactures");
printf("\n**************************************************************************");
printf("\n\n\tLacture 1. Mathematic");
printf("\n\tLacture 2. BS Communication");
printf("\n\tLacture 3. C Language");
printf("\n\n\tLacture 4. C Lab 2");
printf("\n\tLacture 5. Internet HTML");
}
if(a==5)
{
printf("\n\tFriday's Lactures");
printf("\n***************************************************************************");
printf("\n\n\tLacture 1. Computer Fundamental");
printf("\n\tLacture 2. PCS Lab 2");
printf("\n\tLacture 3. Accountancy");
printf("\n\n\tLacture 4. HTML Lab 2");
printf("\n\tLacture 5. ---Free---");
}
if(a==6)
{
printf("\n\tSaturday's Lactures");
printf("\n*****************************************************************************");
printf("\n\n\tLacture 1. Internet HTML");
printf("\n\tLacture 2. PCS Lab 2");
printf("\n\tLacture 3. Accountancy");
printf("\n\n\tLactre 4.Accoutancy");
printf("n\Lacture 5. C Language");
}
if(a==7)
{
printf("\n\tFirst Take Mobile \n Second Call your Friends \n Lets Go in Chinema Holl");
}
printf("\n**********************************************************************************");
printf("\n\t\t Thank You ! Have a Good Day");
getch();
}

No comments:

Post a Comment