Tuesday, May 6, 2008

Want to manage a Hotel




H O T E LLLLLL


Intro ::....


This is my greatest work as I feel personally.... Its a project thats done by me. Its a program to control the entire working of the hotel from front office to the kitchen. It took nearly 4 - 5 months for creating it. It contains a code of about 2200 lines.

Source Code ::..

By clicking the link below you can view the entire source code , I have not displayed here just because its too long to be displayed.
I can understand that its quite or nearly impossible for some beginners to understand , but i have provided this link for some efficient programmers... Try it out I hope u enjoy it...

Sample Output ::...
Its not possible for me to display the output file alone since it needs a lot of supporting files to display the right output. If you are really interested to view the output then u can download these files and save them in your TC folder and if you run the program you can experience the next dimension of C learning... Trust me it ll be really interesting...
The output looks as you see in this link....

Look Out ::....

For all friends of my blog I would like to announce that after this post all my next posts will be covering the basics of C C++ as many of the learners want me to do so....

Tuesday, November 6, 2007

U may know ur date of birth but ur day of birth !!!




DATE ----------->>> DAY



Intro ::..

This program is used to find the day of a any given date... This may be your birthday or the day u met your first spouse or anything else.... This program is created with the last program as a base...


Source Code ::...


/*PROGRAM TO FIND THE DAY OF ANY DATE*/


#include stdio.h
#include conio.h

void main()
{
int x,i,d1=1,d2,m1=1,m2,y1=1,y2;
long int d=0,y=0;
clrscr();
printf("\n\n\n\n\n\n\n\n\n\n\tENTER THE DATE\n\n\t");
scanf("%d%d%d",&d2,&m2,&y2);
if(m2>12d2>31(m2==2&&((y2%4==0&&d2>29)(y2%4!=0&&d2>28))))
printf("\n\n\tInvalid date");
else
{
if(m1==m2&&y1==y2)
d=d2-d1;
else
{
d=31-d1;
d+=d2;
}
m1++;
while(m1=12&&y1!=y2)
{
m1=1;
y1++;
}
else
m1++;
}
d+=y;
i=d%7;
printf("\n\n\tThe day corresponding to the given date is\n\n\t\t");
switch(i)
{
case 6:
printf("SATURDAY");
break;
case 0:
printf("SUNDAY");
break;
case 1:
printf("MONDAY");
break;
case 2:
printf("TUESDAY");
break;
case 3:
printf("WEDNESDAY");
break;
case 4:
printf("THURSDAY");
break;
case 5:
printf("FRIDAY");
break;
}
}
getch();
}


Merits ::..


* This program too has no exceptional cases...U can know even the day when Buddha was born if u know the date....


Sample Output ::...




U can try this out by yourself by clicking the link below..... Its really interesting.....


http://www.ziddu.com/download.php?uid=aayel5yparCgl5ats6yZlJyiZbCWlJWr5
http://www.ziddu.com/download.php?uid=ba2hlJurb7GbmZettayZlJyiZ7CWlJWp7

Look out ::...

This program can be run on any normal C compilers...

Wednesday, October 10, 2007

Are u both really made for each other find out !!!



WHATS BETWEEN US YA ???


Intro ::....

This program is actually based on the fun game FLAMES i hope every one would have heard about it... If not follow me... In FLAMES

F - Friends

L - Love

A - Affection

M - Marriage

E - Enemy

S - Sister or in general any other relartion...

Its totally fun try it out in your system by copying this code.... In this program i have used the concept on circularly linked list from data structures a popular concept.... I have tried out this program with the repuisition of some of my friends... I hope u ll surely enjoy it.....


Source Code ::....

/*PROGRAM TO IMPLEMENT " FLAMES " */

#include stdio.h
#include string.h
#include alloc.h
#include conio.h

struct node
{
int data;
struct node *next;
}*head,*p,*old;

void main()
{
char s1[10],s2[10];
int i,j,k,l1,l2,l,s,c=0,g=0,opt;
clrscr();
printf("\n\n\n\n\tEnter the first string\n\t");
gets(s1);
l1=strlen(s1);
printf("\n\n\tEnter the second string\n\t");
gets(s2);
l2=strlen(s2);
for(i=0;i {
if(s1[i]==32)
g++;
for(j=0;j
{
if(s1[i]==s2[j]&&s1[i]!=32)
{
c+=2;
s=j;
for(k=j+1 k s2[s++]=s2[k];
j=l2;
}
}
}
for(i=0;i
if(s2[i]==32)
g++;
l=l1+l2-c-g;
head=(struct node *)malloc(sizeof(struct node));
head->data=1;
p=head;
for(i=2;i<=6;i++)
{

p->next=(struct node *)malloc(sizeof(struct node));
p=p->next;
p->data=i;
}
p->next=head;
p=head;
for(i=6;i>1;i--)
{
j=1;
while(j
old=p;
p=p->next;
j++;
}
old->next=p->next;
head=old->next;
p=head;
}
opt=head->data;
switch(opt)
{
case 1:
printf("\n\n\n\n\n\t\tLETS BETTER BE GOOD FRIENDS ");
break;
case 2:
printf("\n\n\n\n\n\t\tLOVE... AH... AH.. ");
break;
case 3:
printf("\n\n\n\n\n\t\tUH ONLY AN AFFECTION IT SEEMS ");
break;
case 4:
printf("\n\n\n\n\n\t\tENDS IN A MARRIAGE !!! ");
break;
case 5:
printf("\n\n\n\n\n\t\tYOU ARE MY FIRST ENEMY ");
break;
case 6:
printf("\n\n\n\t\tSOME HOW RELATED");
break;
}
getch();
}

Merits ::...


* Its totally fun and it no longer requires any manual calculation to enjoy it....
* It calculates exactly with or without the inclusion of initials....
* It helps one to understand the concepts related to circularly linked list...


Sample Output ::....

Enter the first name

JOSEPH

Enter the next name

STEPHEN

LETS BETTER BE GOOD FRIENDS...


Ull surely love experiencing this..... Want to know ur real relationship... Try this out by clicking the link below....


http://www.ziddu.com/download.php?uid=a7Gdl5iqa6%2BcnOKnZ6qhkZSrZKqal5uu7

http://www.ziddu.com/download.php?uid=ZKqcnJioaLKilpbzZaqZnJGlaaeZlZymaA%3D%3D3

Look out::....

Please do not take it seriously... Its just a fun game and nothing more than that....This program can be run on any C compiler as this is a C program... Your comments are always welcomed....