Docstoc

fastfood

Document Sample
fastfood Powered By Docstoc
					TERM PAPER
FOUNDATION OF COMPUTING



FAST FOOD AUTOMATION




SUMITTED BY : SANCHIT KAKKAR
R246B43
SUMITTED TO: SUKHDILPREET KAUR
DOS:15:12:2008
           AKNOWLELDGEMENT


As usual large number of people deserves my thanks for the help
they provided me for the preparation for this term paper.
First of all i would like to thanks my teacher Mrs.sukhdilpreet
kaur for her support during the preparation of this topic . I am
very thankful for her guidance.
I would also like to thanks my friends for the encouragement and
information about the topic they provided to me during to me
during my effort to prepare this topic.


SANCHIT KAKKAR
R246B43
  THE TABLE OF CONTENTS



1-INTRODUCTION

2-PROPOSED SYSTEM

3-SYSTEM DESIGN

4-SOURCE CODES

5-SNAPS SHOTS

6-FUTURE PROSPECTIVE
         INTRODUCTION


This project deals with the fast food automation system . It
has been programmed using c language . Frequently use of
library function has been made . The use of library
functions has really helped to reduce the length as well as
complexity of the project . The program takes input about
the codes of the food so as to show the detailed bill to the
customer . It also has the provision of inquiry about
different type of fast food available , there codes and their
rates . That’s all about this project.
      PROPOSED SYSTEM


There is no specific requirement of the system to run this
program . The source codes can be compiled and run on
any system having c language installed on it . The EXE
version i.e. EXE file of the project can run independently
on any operating system . Moreover , it is advised to use
the program on following operating systems.
1.Microsoft windows98
2.Microsoft windowsXP
                                      SYSTEM DESIGN



Then we began with the design phase of the system. System design is a solution, a “HOW TO”
approach to the creation of a new system. It translates system requirements into ways by which
they can be made operational. It is a translational from a user oriented document to a document
oriented programmers. For that, it provides the understanding and procedural details necessary
for the implementation. Here we use Flowchart to supplement the working of the new system.
The system thus made should be reliable, durable and above all should have least possible
maintenance costs. It should overcome all the drawbacks of the Old existing system and most
important of all meet the user requirements.
                                          START




                      Welcome to main menu of fast food automation
                      system




                                          Enter your
                                          choice?




              Place order                    Bill                    quit




                                       Do you want to
                                       continue?




                                             STOP




                            Source codes

#include<stdio.h>

#include<conio.h>
int a,m,b,c,stock=0;



void display()

                 {

                       clrscr();


        printf("=======================<<Menu>>=========================");


        printf("\n========================================================");

                       printf("\n!   Code !     Items           ! Price    !");


        printf("\n========================================================");

                       printf("\n! Code 1: ! Price of Simple Burger is ! Rs 20/- !");

                       printf("\n! Code 2: ! Price of non-veg Burger is ! Rs 30/- !");

                       printf("\n! Code 3: ! Price of coke is        ! Rs 25/- !");

                       printf("\n! Code 4: ! Price of veg Pizza is    ! Rs 45/- !");

                       printf("\n! Code 5: ! Price of non-veg pizza is ! Rs 65/- !");


        printf("\n!=====================================================!");

                       printf("\n! Code 6: Make the Bill.                             !");

                       printf("\n! Code 7: Palace the New Order.                  !");


        printf("\n=========================================================");

                 };



void entry()

        {

                       play:

                       printf("\n\nEnter the Product Code:");

                       scanf("%d",&a);

        };
void product1()

        {

                  c=20;

                  printf("\n<<veg-berger>>");

                  printf("\nEnter the quantity:");

                  scanf("%d",&b);

                  c=c*b;

                  stock=stock+c;

        };



void product2()

        {

                  printf("\n<<Non-veg berger>>");

                  printf("\nEnter the quantity:");

                  scanf("%d",&b);

                  c=30;

                  c=c*b;

                  stock=stock+c;

        };

void product3()

        {

                  printf("\n<<coke>>");

                  printf("\nEnter the quantity:");

                  scanf("%d",&b);

                  c=25;

                  c=c*b;

                  stock=stock+c;

        };



void product4()
        {

                           printf("\n<<Veg Pizza>>");

                           printf("\nEnter the quantity:");

                           scanf("%d",&b);

                           c=45;

                           c=c*b;

                           stock=stock+c;

        };

void product5()

        {

                  printf("\n<<Non-Veg Pizza>>");

                  printf("\nEnter the quantity:");

                  scanf("%d",&b);

                  c=65;

                  c=c*b;

                  stock=stock+c;

        };

void product6()

        {

                  printf("\nNet Bill is:%d",stock);

        };

void product7()

        {

                  printf("\nNew program.");

                  printf("\nNet Bill is:%d",stock);

        };

void fdisplay()

        {



                  printf("\n====================================================");
      printf("\nItems          Rate   Qty     Cost");

      printf("\n====================================================");




      if(a==1)

      {

      printf("\nveg-berger");

      }



      if(a==2)

      {

      printf("\nNon-veg berger");

      }



      if(a==3)

      {

      printf("\ncoke");

      }



      if(a==4)

      {

      printf("\nVeg Pizza");

      }

if(a==5)

      {

      printf("\nNon-Veg Pizza");

      }



   printf("\n====================================================");

      printf("\nNet Bill is:                %d",stock);
                    printf("\n====================================================");

         };



main()

{

         int p;

         g:

         printf("\nEnter the password:");

         scanf("%d",&p);

         if(p==1)

         {

         goto play;

         }

         if(p!=1)

         {

         printf("<<Your Password is wrong entter again>>");

         goto g;

         }

         play:

         display();

         entry();

                                 if(a==1)

                                 {

                                 product1();

                                 entry();

                                 }

                                 if(a==2)

                                 {

                                 product2();

                                 entry();
   }

   if(a==3)

   {

   product3();

   entry();}



if(a==4)

   {

   product4();

   entry();

   }



   if(a==5)

   {

   product5();

   entry();

   }



   if(a==6)

   {

   product6();

   fdisplay();

   entry();

   }



   if(a==7)

   {

   product7();

   goto play;

   }
    getch();

}




               Snap shots
1-login screen
2-menu screen




3-Total bill screen
FUTURE SCOPE OF PROJECT
This project can be really helpful in management of fast
food restaurants. There is scope for modification in a way
to meet the future requirements of restaurants. Its ability
to run on different operating systems and occupy less
memory favours it as compared to other programs.

				
DOCUMENT INFO
Shared By:
Categories:
Tags:
Stats:
views:1
posted:8/15/2012
language:Unknown
pages:17