SlideShare une entreprise Scribd logo
1  sur  24
CAFETERIA INFO MANAGEMENT SYSTEM



                     BY :-
                     CHENDIKA VAMSI KRISHNA
                     G.ESWARA MOORTI
                     GAURAV SUBHAM
                     GAURAV KAUSHIK
                     GAURAV RAJ KHAIWAL
                     GAURAV SHARMA
                     GAURAV KUMAR SHARMA
                     GAUTAM AHUJA
                     GOURAV CHOKROBARTY
                     GUNJAN TYAGI
                     HARSHA MEHRA
CAFETERIA INFO MANAGEMENT SYSTEM


It is database to maintain the records of all items
such as the no. of items, its price, its quantity and
other details related to those items. In CIMS we
also maintain the record of employees and other
detail related to them.
USE OF CIMS


It helps us to maintain the record of everything
present in cafeteria, and also to maintain
records easily without being messed up and
thus reduce the time consumption.
LIST OF VARIABLES

  In cafeteria info management system, we make use of the following variables:

1. TYPE OF THE MEAL (sandwiches/patties/beverages): int type
2. NAME OF THE MEAL: character type
3. QUANTITY OF THE MEAL: int type
4. COST OF THE MEAL: int type
5. TAX ON THE MEAL: int type
6. CATEGORY OF THE EMPLOYEES (manager/subordinates/guard):
   character type
7. NUMBER OF PEOPLE IN EACH CATEGORY: int type
8. SALARY OF THE EMPLOYEES: int type.
SOFTWARE USED:



Operating system : Microsoft XP/Windows 7
       Platform : C Language( 32 bits)
  Application Software : MS Office 2007/11
CODING
#include<stdio.h>
#include<conio.h>
#include<string.h>

'#' is a symbol that says "next instruction is for pre-processor, not compiler".

Stdio.h is C program header file which contain printf and scanf.. It is standard
header file.

conio.h is Turbo C++ header file from Borland.. Its a non standard header
file..used for clrscr(), getch() functions..
float price[7] = {25.00,50.00,20.00,50.00,40.00,60.00,40.00 };
float mealTaxPrices[7];
int persons;

void printMeals();
void orderMeals();
Void order();
void salary();
int main()
{
    char response = 'y', ch;
    printMeals();
    while(response == 'y')
{
      PRINTF("PLEASE ENTER NUMBER OF PERSONS :");
      SCANF("%D",&PERSONS);


      ORDERMEALS();

      PRINTF("NWOULD YOU LIKE TO CONTINUE(Y/N):");
      SCANF("N%C",&RESPONSE);
  }
PRINTF("N   ******************** THANK YOU FOR COMING *************************N");

 PRINTF("WANT TO SEE SALARIES???");
SCANF("%C", &CH);
 IF(CH=='Y'||CH=='Y')
 SALARY();
 RETURN 0;
 GETCH();
}
‘|| ‘ represent OR operator ,will be executed even if any one of the condition will
be true
void printMeals();
void orderMeals();

the above both represents function definition.
while(response == 'y')


                             WHILE STATEMENT
is used to execute the set of statement repeatedly till the condition is specified
remains true.
VOID PRINTMEALS()
{

    PRINTF("******** WELCOME TO CSE RESTURANT *******N");
    PRINTF(" TTT BELOW IS THE MENUTTT");
    PRINTF(" TTTTT MEALSTTTPRICE:N");
    PRINTF(" TTT 1- VEG BURGERTTRS.25N");
    PRINTF(" TTT 2-CHICK.BURGERTTRS.50N");
    PRINTF(" TTT 3- VEG PATTIESTTRS.20N");
    PRINTF(" TTT 4- CHICK.PATTIESTRS.50N");
    PRINTF(" TTT 5- SANDWICHTTRS.40N");
    PRINTF(" TTT 6- PEPSITTRS.60N");
    PRINTF(" TTT 7- FANTAT TRS.40N");



    PRINTF("N");
}
When the function void printMeals() is called it will diplay the above menu list.
void orderMeals()
{
float totalPrice;
           float Payment,discount;
      printf(" ttORDER MENUn");
      totalPrice = order();
                      Payment = totalPrice ;


    printf(" tt ** final BILL **     n");
    printf(" tttpersontt%dtt%5.2fn",persons,totalPrice);
    printf(" tttTotal billttt%5.2fn",Payment );
if(Payment < 10)
                     discount=((Payment * 0.5)/100);
    else if(Payment>= 10 && Payment<20)
      discount=((Payment * 1)/100);
    else if(Payment>= 20 && Payment<30)
      discount=((Payment * 1.5)/100);
    else if(Payment>= 30 && Payment<40)
      discount=((Payment * 2.0)/100);
          else
                     discount= ((Payment * 5.0)/100);
      printf(" tttTotal bill after discountt%5.2fn",discount);
}
In the nested if else, the discount will be given based on the given conditions.
int order()
{
      int menuOption,i,amount;
      char response = 'y';
      int totalPerPerson = 0,totalAllPerson = 0;
    int tax = 5;
      if(persons <=0)
                        printf("n ");
              else
      for(i=0;i<persons;i++)
      {
             printf("person %d please enter your ordersn",i+1);
             while(response == 'y')
{
      PRINTF("PLEASE ENTER YOUR OPTION:");
      SCANF("%D",&MENUOPTION);
                 IF(MENUOPTION<1 || MENUOPTION>7)
                 {
                 PRINTF("SORRY WE DON`T HAVE THIS ORDER NAGAIN! ");
                 CONTINUE;
                 }
      PRINTF("PLEASE ENTER YOUR AMOUNT OF ORDER:");
                  SCANF("%D",&AMOUNT);


     TOTALPERPERSON = TOTALPERPERSON +(AMOUNT * PRICE[MENUOPTION - 1]
);

         PRINTF("NWOULD YOU LIKE TO ENTER MORE ORDERS(Y/N):");
         SCANF("N%C",&RESPONSE);
}
         PRINTF("N");
         TOTALALLPERSON +=TOTALPERPERSON;
         TOTALPERPERSON = 0;
         RESPONSE = 'Y';
    }

    RETURN TOTALALLPERSON + ((TOTALALLPERSON * TAX) / 100);
    }

VOID SALARY()
{ CHAR CH;
  FILE *PTR;
       PTR=FOPEN("SALARY.TXT","R");
       IF(PTR==NULL)
OUTPUT
{
        PRINTF("SORRY !!!! THE SPECIFIED FILE WAS NOT FOUND IN SYSTEM ");
    }
        WHILE(!FEOF(PTR))
    {
        CH=FGETC(PTR);
        PRINTF("%C", CH);
    }
        FCLOSE(PTR);
}

FILE *PTR; REPRESENTS FILE IS USED WITH THE FILE POINTER NAME PTR.

PTR=FOPEN("SALARY.TXT","R");
IT WILL OPEN A FILE IN THE NAME OF SALARY IN READ MODE
PROBLEMS WHILE WRITING THE CODE

• totalPerPerson = totalPerPerson +(amount *
  price[menuOption - 1] );
• -1 , only when -1 is given it will take array[0], other wise
  for item 1 it will take as[1].
• Float array prices are declared inside main(). So it is not
  able access by other functions outside the main
EXPLANATION OF CODE

It is a c program in which we have taken the prices
as well as the taxes on item in float and no. of
person in integer type.


In the first part of the code we are creating the
program i.e what we want to be in receipt and how
would be proceed.
In the second we created the program in such a way that it
shows it will show us the menu card.


In the next half we made the so as to tell the prices after
adding taxes and various discounts.


Further we made the program to check and the task as
per the requirement and then give the result i.e the price.
And in the last part we made the program to show
the salary of various employees.


And for making this code we have various
datatypes i.e. the
pointers, functions, strings, integer type, float and
many more.
THANK YOU

Contenu connexe

Tendances

NGINX High-performance Caching
NGINX High-performance CachingNGINX High-performance Caching
NGINX High-performance CachingNGINX, Inc.
 
PROJECT REPORT ON COMPUTER SHOP SYSTEM IN C++
PROJECT REPORT ON COMPUTER SHOP SYSTEM IN C++PROJECT REPORT ON COMPUTER SHOP SYSTEM IN C++
PROJECT REPORT ON COMPUTER SHOP SYSTEM IN C++vikram mahendra
 
오픈소스로 만드는 DB 모니터링 시스템 (w/graphite+grafana)
오픈소스로 만드는 DB 모니터링 시스템 (w/graphite+grafana)오픈소스로 만드는 DB 모니터링 시스템 (w/graphite+grafana)
오픈소스로 만드는 DB 모니터링 시스템 (w/graphite+grafana)I Goo Lee
 
Reverse eningeering
Reverse eningeeringReverse eningeering
Reverse eningeeringKent Huang
 
Introduction to Haproxy
Introduction to HaproxyIntroduction to Haproxy
Introduction to HaproxyShaopeng He
 
Writing clean code in C# and .NET
Writing clean code in C# and .NETWriting clean code in C# and .NET
Writing clean code in C# and .NETDror Helper
 
Indexing with MongoDB
Indexing with MongoDBIndexing with MongoDB
Indexing with MongoDBMongoDB
 
Json in Postgres - the Roadmap
 Json in Postgres - the Roadmap Json in Postgres - the Roadmap
Json in Postgres - the RoadmapEDB
 
MongoDB Database Replication
MongoDB Database ReplicationMongoDB Database Replication
MongoDB Database ReplicationMehdi Valikhani
 
MongoDB.local Sydney 2019: Data Modeling for MongoDB
MongoDB.local Sydney 2019: Data Modeling for MongoDBMongoDB.local Sydney 2019: Data Modeling for MongoDB
MongoDB.local Sydney 2019: Data Modeling for MongoDBMongoDB
 
Beautiful REST+JSON APIs with Ion
Beautiful REST+JSON APIs with IonBeautiful REST+JSON APIs with Ion
Beautiful REST+JSON APIs with IonStormpath
 
Binary exploitation - AIS3
Binary exploitation - AIS3Binary exploitation - AIS3
Binary exploitation - AIS3Angel Boy
 
COMPUTER APPLICATION PROJECT ON
COMPUTER APPLICATION PROJECT ON COMPUTER APPLICATION PROJECT ON
COMPUTER APPLICATION PROJECT ON Jitender Suryavansh
 

Tendances (20)

NGINX High-performance Caching
NGINX High-performance CachingNGINX High-performance Caching
NGINX High-performance Caching
 
PROJECT REPORT ON COMPUTER SHOP SYSTEM IN C++
PROJECT REPORT ON COMPUTER SHOP SYSTEM IN C++PROJECT REPORT ON COMPUTER SHOP SYSTEM IN C++
PROJECT REPORT ON COMPUTER SHOP SYSTEM IN C++
 
Canteen management
Canteen managementCanteen management
Canteen management
 
Food order
Food orderFood order
Food order
 
오픈소스로 만드는 DB 모니터링 시스템 (w/graphite+grafana)
오픈소스로 만드는 DB 모니터링 시스템 (w/graphite+grafana)오픈소스로 만드는 DB 모니터링 시스템 (w/graphite+grafana)
오픈소스로 만드는 DB 모니터링 시스템 (w/graphite+grafana)
 
Reverse eningeering
Reverse eningeeringReverse eningeering
Reverse eningeering
 
Introduction to Haproxy
Introduction to HaproxyIntroduction to Haproxy
Introduction to Haproxy
 
Writing clean code in C# and .NET
Writing clean code in C# and .NETWriting clean code in C# and .NET
Writing clean code in C# and .NET
 
Indexing with MongoDB
Indexing with MongoDBIndexing with MongoDB
Indexing with MongoDB
 
Json in Postgres - the Roadmap
 Json in Postgres - the Roadmap Json in Postgres - the Roadmap
Json in Postgres - the Roadmap
 
MongoDB Database Replication
MongoDB Database ReplicationMongoDB Database Replication
MongoDB Database Replication
 
MongoDB.local Sydney 2019: Data Modeling for MongoDB
MongoDB.local Sydney 2019: Data Modeling for MongoDBMongoDB.local Sydney 2019: Data Modeling for MongoDB
MongoDB.local Sydney 2019: Data Modeling for MongoDB
 
Atm project
Atm projectAtm project
Atm project
 
Beautiful REST+JSON APIs with Ion
Beautiful REST+JSON APIs with IonBeautiful REST+JSON APIs with Ion
Beautiful REST+JSON APIs with Ion
 
BANKING SYSTEM
BANKING SYSTEMBANKING SYSTEM
BANKING SYSTEM
 
使用者認證
使用者認證使用者認證
使用者認證
 
Hotel management report
Hotel management reportHotel management report
Hotel management report
 
Binary exploitation - AIS3
Binary exploitation - AIS3Binary exploitation - AIS3
Binary exploitation - AIS3
 
COMPUTER APPLICATION PROJECT ON
COMPUTER APPLICATION PROJECT ON COMPUTER APPLICATION PROJECT ON
COMPUTER APPLICATION PROJECT ON
 
Food donation project report I
Food donation project report IFood donation project report I
Food donation project report I
 

Similaire à cafeteria info management system

You are to write a program that computes customers bill for hisher.docx
 You are to write a program that computes customers bill for hisher.docx You are to write a program that computes customers bill for hisher.docx
You are to write a program that computes customers bill for hisher.docxajoy21
 
5 c control statements looping
5  c control statements looping5  c control statements looping
5 c control statements loopingMomenMostafa
 
COMPUTER SCIENCE CLASS 12 PRACTICAL FILE
COMPUTER SCIENCE CLASS 12 PRACTICAL FILECOMPUTER SCIENCE CLASS 12 PRACTICAL FILE
COMPUTER SCIENCE CLASS 12 PRACTICAL FILEAnushka Rai
 
C Programming Lab.pdf
C Programming Lab.pdfC Programming Lab.pdf
C Programming Lab.pdfMOJO89
 
computer programming Control Statements.pptx
computer programming Control Statements.pptxcomputer programming Control Statements.pptx
computer programming Control Statements.pptxeaglesniper008
 
The purpose of this C++ programming project is to allow the student .pdf
The purpose of this C++ programming project is to allow the student .pdfThe purpose of this C++ programming project is to allow the student .pdf
The purpose of this C++ programming project is to allow the student .pdfRahul04August
 
Using standard libraries like stdio and sdtlib.h and using stats.h a.pdf
Using standard libraries like stdio and sdtlib.h and using stats.h a.pdfUsing standard libraries like stdio and sdtlib.h and using stats.h a.pdf
Using standard libraries like stdio and sdtlib.h and using stats.h a.pdffashiongallery1
 
4 operators, expressions &amp; statements
4  operators, expressions &amp; statements4  operators, expressions &amp; statements
4 operators, expressions &amp; statementsMomenMostafa
 
The solution is as belowEmployeeDemo.javaimport java.util.Scann.pdf
The solution is as belowEmployeeDemo.javaimport java.util.Scann.pdfThe solution is as belowEmployeeDemo.javaimport java.util.Scann.pdf
The solution is as belowEmployeeDemo.javaimport java.util.Scann.pdfaparnatiwari291
 
RAILWAY RESERWATION PROJECT PROGRAM
RAILWAY RESERWATION PROJECT PROGRAMRAILWAY RESERWATION PROJECT PROGRAM
RAILWAY RESERWATION PROJECT PROGRAMKrishna Raj
 
CSE 103 Project Presentation.pptx
CSE 103 Project Presentation.pptxCSE 103 Project Presentation.pptx
CSE 103 Project Presentation.pptxTasnimSaimaRaita
 
rules, events and workflow
rules, events and workflowrules, events and workflow
rules, events and workflowMark Proctor
 
PROVIDE COMMENTS TO FELLOW STUDENTS ANSWERS AND PLEASE DON’T SAY G.docx
PROVIDE COMMENTS TO FELLOW STUDENTS ANSWERS AND PLEASE DON’T SAY G.docxPROVIDE COMMENTS TO FELLOW STUDENTS ANSWERS AND PLEASE DON’T SAY G.docx
PROVIDE COMMENTS TO FELLOW STUDENTS ANSWERS AND PLEASE DON’T SAY G.docxamrit47
 
Best C Programming Solution
Best C Programming SolutionBest C Programming Solution
Best C Programming Solutionyogini sharma
 
Programming ppt files (final)
Programming ppt files (final)Programming ppt files (final)
Programming ppt files (final)yap_raiza
 

Similaire à cafeteria info management system (20)

You are to write a program that computes customers bill for hisher.docx
 You are to write a program that computes customers bill for hisher.docx You are to write a program that computes customers bill for hisher.docx
You are to write a program that computes customers bill for hisher.docx
 
5 c control statements looping
5  c control statements looping5  c control statements looping
5 c control statements looping
 
COMPUTER SCIENCE CLASS 12 PRACTICAL FILE
COMPUTER SCIENCE CLASS 12 PRACTICAL FILECOMPUTER SCIENCE CLASS 12 PRACTICAL FILE
COMPUTER SCIENCE CLASS 12 PRACTICAL FILE
 
Cpds lab
Cpds labCpds lab
Cpds lab
 
C Programming Lab.pdf
C Programming Lab.pdfC Programming Lab.pdf
C Programming Lab.pdf
 
Programming egs
Programming egs Programming egs
Programming egs
 
computer programming Control Statements.pptx
computer programming Control Statements.pptxcomputer programming Control Statements.pptx
computer programming Control Statements.pptx
 
The purpose of this C++ programming project is to allow the student .pdf
The purpose of this C++ programming project is to allow the student .pdfThe purpose of this C++ programming project is to allow the student .pdf
The purpose of this C++ programming project is to allow the student .pdf
 
Using standard libraries like stdio and sdtlib.h and using stats.h a.pdf
Using standard libraries like stdio and sdtlib.h and using stats.h a.pdfUsing standard libraries like stdio and sdtlib.h and using stats.h a.pdf
Using standard libraries like stdio and sdtlib.h and using stats.h a.pdf
 
Control structures(class 02)
Control structures(class 02)Control structures(class 02)
Control structures(class 02)
 
Statement
StatementStatement
Statement
 
4 operators, expressions &amp; statements
4  operators, expressions &amp; statements4  operators, expressions &amp; statements
4 operators, expressions &amp; statements
 
The solution is as belowEmployeeDemo.javaimport java.util.Scann.pdf
The solution is as belowEmployeeDemo.javaimport java.util.Scann.pdfThe solution is as belowEmployeeDemo.javaimport java.util.Scann.pdf
The solution is as belowEmployeeDemo.javaimport java.util.Scann.pdf
 
RAILWAY RESERWATION PROJECT PROGRAM
RAILWAY RESERWATION PROJECT PROGRAMRAILWAY RESERWATION PROJECT PROGRAM
RAILWAY RESERWATION PROJECT PROGRAM
 
Ip project
Ip projectIp project
Ip project
 
CSE 103 Project Presentation.pptx
CSE 103 Project Presentation.pptxCSE 103 Project Presentation.pptx
CSE 103 Project Presentation.pptx
 
rules, events and workflow
rules, events and workflowrules, events and workflow
rules, events and workflow
 
PROVIDE COMMENTS TO FELLOW STUDENTS ANSWERS AND PLEASE DON’T SAY G.docx
PROVIDE COMMENTS TO FELLOW STUDENTS ANSWERS AND PLEASE DON’T SAY G.docxPROVIDE COMMENTS TO FELLOW STUDENTS ANSWERS AND PLEASE DON’T SAY G.docx
PROVIDE COMMENTS TO FELLOW STUDENTS ANSWERS AND PLEASE DON’T SAY G.docx
 
Best C Programming Solution
Best C Programming SolutionBest C Programming Solution
Best C Programming Solution
 
Programming ppt files (final)
Programming ppt files (final)Programming ppt files (final)
Programming ppt files (final)
 

Dernier

Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseAnaAcapella
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxJisc
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and ModificationsMJDuyan
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxJisc
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsKarakKing
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxDenish Jangid
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024Elizabeth Walsh
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Pooja Bhuva
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.christianmathematics
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsMebane Rash
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxmarlenawright1
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - Englishneillewis46
 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Association for Project Management
 
How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxCeline George
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptxMaritesTamaniVerdade
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...Poonam Aher Patil
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxDr. Sarita Anand
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structuredhanjurrannsibayan2
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...ZurliaSoop
 

Dernier (20)

Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptx
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...
 
How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptx
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 

cafeteria info management system

  • 1. CAFETERIA INFO MANAGEMENT SYSTEM BY :- CHENDIKA VAMSI KRISHNA G.ESWARA MOORTI GAURAV SUBHAM GAURAV KAUSHIK GAURAV RAJ KHAIWAL GAURAV SHARMA GAURAV KUMAR SHARMA GAUTAM AHUJA GOURAV CHOKROBARTY GUNJAN TYAGI HARSHA MEHRA
  • 2. CAFETERIA INFO MANAGEMENT SYSTEM It is database to maintain the records of all items such as the no. of items, its price, its quantity and other details related to those items. In CIMS we also maintain the record of employees and other detail related to them.
  • 3. USE OF CIMS It helps us to maintain the record of everything present in cafeteria, and also to maintain records easily without being messed up and thus reduce the time consumption.
  • 4. LIST OF VARIABLES In cafeteria info management system, we make use of the following variables: 1. TYPE OF THE MEAL (sandwiches/patties/beverages): int type 2. NAME OF THE MEAL: character type 3. QUANTITY OF THE MEAL: int type 4. COST OF THE MEAL: int type 5. TAX ON THE MEAL: int type 6. CATEGORY OF THE EMPLOYEES (manager/subordinates/guard): character type 7. NUMBER OF PEOPLE IN EACH CATEGORY: int type 8. SALARY OF THE EMPLOYEES: int type.
  • 5. SOFTWARE USED: Operating system : Microsoft XP/Windows 7 Platform : C Language( 32 bits) Application Software : MS Office 2007/11
  • 6. CODING #include<stdio.h> #include<conio.h> #include<string.h> '#' is a symbol that says "next instruction is for pre-processor, not compiler". Stdio.h is C program header file which contain printf and scanf.. It is standard header file. conio.h is Turbo C++ header file from Borland.. Its a non standard header file..used for clrscr(), getch() functions..
  • 7. float price[7] = {25.00,50.00,20.00,50.00,40.00,60.00,40.00 }; float mealTaxPrices[7]; int persons; void printMeals(); void orderMeals(); Void order(); void salary(); int main() { char response = 'y', ch; printMeals(); while(response == 'y')
  • 8. { PRINTF("PLEASE ENTER NUMBER OF PERSONS :"); SCANF("%D",&PERSONS); ORDERMEALS(); PRINTF("NWOULD YOU LIKE TO CONTINUE(Y/N):"); SCANF("N%C",&RESPONSE); } PRINTF("N ******************** THANK YOU FOR COMING *************************N"); PRINTF("WANT TO SEE SALARIES???"); SCANF("%C", &CH); IF(CH=='Y'||CH=='Y') SALARY(); RETURN 0; GETCH(); }
  • 9. ‘|| ‘ represent OR operator ,will be executed even if any one of the condition will be true void printMeals(); void orderMeals(); the above both represents function definition. while(response == 'y') WHILE STATEMENT is used to execute the set of statement repeatedly till the condition is specified remains true.
  • 10. VOID PRINTMEALS() { PRINTF("******** WELCOME TO CSE RESTURANT *******N"); PRINTF(" TTT BELOW IS THE MENUTTT"); PRINTF(" TTTTT MEALSTTTPRICE:N"); PRINTF(" TTT 1- VEG BURGERTTRS.25N"); PRINTF(" TTT 2-CHICK.BURGERTTRS.50N"); PRINTF(" TTT 3- VEG PATTIESTTRS.20N"); PRINTF(" TTT 4- CHICK.PATTIESTRS.50N"); PRINTF(" TTT 5- SANDWICHTTRS.40N"); PRINTF(" TTT 6- PEPSITTRS.60N"); PRINTF(" TTT 7- FANTAT TRS.40N"); PRINTF("N"); }
  • 11.
  • 12. When the function void printMeals() is called it will diplay the above menu list. void orderMeals() { float totalPrice; float Payment,discount; printf(" ttORDER MENUn"); totalPrice = order(); Payment = totalPrice ; printf(" tt ** final BILL ** n"); printf(" tttpersontt%dtt%5.2fn",persons,totalPrice); printf(" tttTotal billttt%5.2fn",Payment );
  • 13.
  • 14. if(Payment < 10) discount=((Payment * 0.5)/100); else if(Payment>= 10 && Payment<20) discount=((Payment * 1)/100); else if(Payment>= 20 && Payment<30) discount=((Payment * 1.5)/100); else if(Payment>= 30 && Payment<40) discount=((Payment * 2.0)/100); else discount= ((Payment * 5.0)/100); printf(" tttTotal bill after discountt%5.2fn",discount); } In the nested if else, the discount will be given based on the given conditions.
  • 15. int order() { int menuOption,i,amount; char response = 'y'; int totalPerPerson = 0,totalAllPerson = 0; int tax = 5; if(persons <=0) printf("n "); else for(i=0;i<persons;i++) { printf("person %d please enter your ordersn",i+1); while(response == 'y')
  • 16. { PRINTF("PLEASE ENTER YOUR OPTION:"); SCANF("%D",&MENUOPTION); IF(MENUOPTION<1 || MENUOPTION>7) { PRINTF("SORRY WE DON`T HAVE THIS ORDER NAGAIN! "); CONTINUE; } PRINTF("PLEASE ENTER YOUR AMOUNT OF ORDER:"); SCANF("%D",&AMOUNT); TOTALPERPERSON = TOTALPERPERSON +(AMOUNT * PRICE[MENUOPTION - 1] ); PRINTF("NWOULD YOU LIKE TO ENTER MORE ORDERS(Y/N):"); SCANF("N%C",&RESPONSE);
  • 17. } PRINTF("N"); TOTALALLPERSON +=TOTALPERPERSON; TOTALPERPERSON = 0; RESPONSE = 'Y'; } RETURN TOTALALLPERSON + ((TOTALALLPERSON * TAX) / 100); } VOID SALARY() { CHAR CH; FILE *PTR; PTR=FOPEN("SALARY.TXT","R"); IF(PTR==NULL)
  • 19. { PRINTF("SORRY !!!! THE SPECIFIED FILE WAS NOT FOUND IN SYSTEM "); } WHILE(!FEOF(PTR)) { CH=FGETC(PTR); PRINTF("%C", CH); } FCLOSE(PTR); } FILE *PTR; REPRESENTS FILE IS USED WITH THE FILE POINTER NAME PTR. PTR=FOPEN("SALARY.TXT","R"); IT WILL OPEN A FILE IN THE NAME OF SALARY IN READ MODE
  • 20. PROBLEMS WHILE WRITING THE CODE • totalPerPerson = totalPerPerson +(amount * price[menuOption - 1] ); • -1 , only when -1 is given it will take array[0], other wise for item 1 it will take as[1]. • Float array prices are declared inside main(). So it is not able access by other functions outside the main
  • 21. EXPLANATION OF CODE It is a c program in which we have taken the prices as well as the taxes on item in float and no. of person in integer type. In the first part of the code we are creating the program i.e what we want to be in receipt and how would be proceed.
  • 22. In the second we created the program in such a way that it shows it will show us the menu card. In the next half we made the so as to tell the prices after adding taxes and various discounts. Further we made the program to check and the task as per the requirement and then give the result i.e the price.
  • 23. And in the last part we made the program to show the salary of various employees. And for making this code we have various datatypes i.e. the pointers, functions, strings, integer type, float and many more.