SlideShare uma empresa Scribd logo
1 de 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

Mais conteúdo relacionado

Mais procurados

Mobile Based Doctor-Patient Consultation Application [E-Clinic]
Mobile Based Doctor-Patient Consultation Application [E-Clinic]Mobile Based Doctor-Patient Consultation Application [E-Clinic]
Mobile Based Doctor-Patient Consultation Application [E-Clinic]NahidHasanSany
 
Project Report on Grocery Store Website
Project Report on Grocery Store WebsiteProject Report on Grocery Store Website
Project Report on Grocery Store Website'Ashmeet Sehgal'
 
New Restaurant Management System Concept
New Restaurant Management System ConceptNew Restaurant Management System Concept
New Restaurant Management System ConceptMaruf Abdullah (Rion)
 
Restaurant Project by Amit Mangukiya
Restaurant Project by Amit MangukiyaRestaurant Project by Amit Mangukiya
Restaurant Project by Amit MangukiyaAmit Mangukiya
 
E-Restaurant Management System
E-Restaurant Management SystemE-Restaurant Management System
E-Restaurant Management SystemArno Lordkronos
 
Python Quiz Questions.docx
Python Quiz Questions.docxPython Quiz Questions.docx
Python Quiz Questions.docxRMani7
 
Golang - Overview of Go (golang) Language
Golang - Overview of Go (golang) LanguageGolang - Overview of Go (golang) Language
Golang - Overview of Go (golang) LanguageAniruddha Chakrabarti
 
Software Requirements Specification for restaurant management system
Software Requirements Specification for restaurant management systemSoftware Requirements Specification for restaurant management system
Software Requirements Specification for restaurant management systemSM. Aurnob
 
Final Year Project of Online Food Ordering System
Final Year Project of Online Food Ordering SystemFinal Year Project of Online Food Ordering System
Final Year Project of Online Food Ordering SystemSidraShehbaz
 
Online Railway Reservation System
Online Railway Reservation SystemOnline Railway Reservation System
Online Railway Reservation SystemPrince Kumar
 
Online booking system for car rental companies - Bespoke Car Rental Booking E...
Online booking system for car rental companies - Bespoke Car Rental Booking E...Online booking system for car rental companies - Bespoke Car Rental Booking E...
Online booking system for car rental companies - Bespoke Car Rental Booking E...Orisys Infotech
 
Online Movie Ticket Booking
Online Movie Ticket BookingOnline Movie Ticket Booking
Online Movie Ticket BookingSuman Bose
 
Fruit Product Management System
Fruit Product Management SystemFruit Product Management System
Fruit Product Management Systemsaiyadsanobar
 
automated doctor appointment and prescription management system
automated doctor appointment and prescription management systemautomated doctor appointment and prescription management system
automated doctor appointment and prescription management systemluckymoni76
 
Railway reservation system
Railway reservation systemRailway reservation system
Railway reservation systemPrashant Sharma
 

Mais procurados (20)

Mobile Based Doctor-Patient Consultation Application [E-Clinic]
Mobile Based Doctor-Patient Consultation Application [E-Clinic]Mobile Based Doctor-Patient Consultation Application [E-Clinic]
Mobile Based Doctor-Patient Consultation Application [E-Clinic]
 
Currency converter
Currency converterCurrency converter
Currency converter
 
Project Report on Grocery Store Website
Project Report on Grocery Store WebsiteProject Report on Grocery Store Website
Project Report on Grocery Store Website
 
New Restaurant Management System Concept
New Restaurant Management System ConceptNew Restaurant Management System Concept
New Restaurant Management System Concept
 
Restaurant Project by Amit Mangukiya
Restaurant Project by Amit MangukiyaRestaurant Project by Amit Mangukiya
Restaurant Project by Amit Mangukiya
 
E-Restaurant Management System
E-Restaurant Management SystemE-Restaurant Management System
E-Restaurant Management System
 
Python Quiz Questions.docx
Python Quiz Questions.docxPython Quiz Questions.docx
Python Quiz Questions.docx
 
Golang - Overview of Go (golang) Language
Golang - Overview of Go (golang) LanguageGolang - Overview of Go (golang) Language
Golang - Overview of Go (golang) Language
 
Software Requirements Specification for restaurant management system
Software Requirements Specification for restaurant management systemSoftware Requirements Specification for restaurant management system
Software Requirements Specification for restaurant management system
 
Final Year Project of Online Food Ordering System
Final Year Project of Online Food Ordering SystemFinal Year Project of Online Food Ordering System
Final Year Project of Online Food Ordering System
 
Final_report
Final_reportFinal_report
Final_report
 
Online Railway Reservation System
Online Railway Reservation SystemOnline Railway Reservation System
Online Railway Reservation System
 
Online booking system for car rental companies - Bespoke Car Rental Booking E...
Online booking system for car rental companies - Bespoke Car Rental Booking E...Online booking system for car rental companies - Bespoke Car Rental Booking E...
Online booking system for car rental companies - Bespoke Car Rental Booking E...
 
Online Movie Ticket Booking
Online Movie Ticket BookingOnline Movie Ticket Booking
Online Movie Ticket Booking
 
Food order
Food orderFood order
Food order
 
Fruit Product Management System
Fruit Product Management SystemFruit Product Management System
Fruit Product Management System
 
automated doctor appointment and prescription management system
automated doctor appointment and prescription management systemautomated doctor appointment and prescription management system
automated doctor appointment and prescription management system
 
Canteen management system
Canteen management systemCanteen management system
Canteen management system
 
Railway reservation system
Railway reservation systemRailway reservation system
Railway reservation system
 
Hospital management system
Hospital management systemHospital management system
Hospital management system
 

Semelhante a 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
 

Semelhante a 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)
 

Último

An Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdfAn Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdfSanaAli374401
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Celine George
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.pptRamjanShidvankar
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactPECB
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxVishalSingh1417
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxVishalSingh1417
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...christianmathematics
 
Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.MateoGardella
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxnegromaestrong
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Shubhangi Sonawane
 
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
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingTeacherCyreneCayanan
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfChris Hunter
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docxPoojaSen20
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphThiyagu K
 

Último (20)

An Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdfAn Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdf
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
 
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
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writing
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdf
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docx
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 

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.