You are on page 1of 17

KHWOPA SECONDARY SCHOOL

DEPARTMENT OF COMPUTER SCIENCE


DEKOCHA-6, BHAKTAPUR

A FINAL REPORT ON
(Restaurant Billing System)
Submitted by:
Bigyan Shrestha
Jay Shrestha
Kushal Aryal
Safar Pandit
Saugat Thapa
Submitted to:
Computer Science Department

Khwopa Secondary School


Dekocha-6, Bhaktapur

UNDER THE GUIDANCE OF


Rachana Nyaichyai
Date of submission:2079/ /
DEPARTMENT OF COMPUTER SCIENCE
KHWOPA SECONDARY SCHOOL
DEKOCHA-6, BHAKTAPUR

CERTIFICATE
This is to certify that the project entitled "About Nepal" submitted by Mr. Jay
Shrestha, Mr. Kushal Aryal, Mr. Saugat Thapa, Mr. Bigyan Shrestha, Mr. Safar
Pandit in a partial fulfillment of the requirements for the internal marks of
Computer Science in NEB (Nepal Education Board) Class 12 (XII), is a bona fide
work to the best of my/our knowledge and may be placed before the examination
Board for their consideration.

Panel of Examiners:
Name Signature Date

External Examiner
........................
Project Supervisors
Mrs. Rachana Nyaichyai
ACKNOWLEDGEMENT

We are thankful to all those who have helped us directly or indirectly with this
project. Foremost, we would like to thank the Department of Computer Science
of Khwopa Secondary School for giving us an opportunity to carry out mini project
to create a software. We would like to thank our computer teacher Mrs. Rachana
Nyaichyai for her guidance while developing project and also for organizing the
project schedules. We would also like to acknowledge their effort that
encouraged us to take this challenging project. We would also like to offer our
gratitude towards some of our friends who helped throughout our project
development phase by providing several references regarding different links for
code and making project report.
ABSTRACT

The main goal of this thesis was to develop based billing system for a restaurant.
This Restaurant bill management system is made for the effective utilization of
modern technology which helps in taking order from customer and generate bill
for customers. It is simple, useful and automated software that can handle a lot of
information about the orders. It is designed for the sole purpose of efficiency,
speed and accuracy. It maintains the records related to Customers and Sales etc.
Table of Contents

ACKNOWLEDGEMENT 3
ABSTRACT 4
Introduction 6
Background 6
Applications 6
Scopes and limitations 7
Methodology 8
Code 8
Flowchart diagram 15
Tool’s and Platform 17
Discussion and Conclusion 18
Discussion 18
Skills Developed 18
Conclusion 18
Introduction
Background

The project is Restaurant Billing System software for monitoring and controlling
the transactions in restaurant. Restaurant Billing System is a window application
designed to help users maintain and organize restaurant. The system process
transection and stores the resulting data. The billing system should provide
service to the user, collect user usage records, and generate invoices of each
credit expire.

Applications

1) The aim of the study is to develop a billing system for hotel industry.
2) To design a system that can be used to store customers billing records.
3) To implement a system that can be used to retrieve and update customers
billing records easily.
4) Easy to use System
5) Easy to use environment for users.
Scopes and limitations

The software has a lot of features and advantages over paper-based


billing system. It has following features:
1) It will help employee in fast billing.
2) Quality and faster service can be given to the customers.
3) Easy to maintain in future prospect.
4) Easy to operate.

The limitations of this system are as follows:


1) Insufficient time for development.
2) Need further more improvements for high class restaurants.
3) A wider reach of customers cannot be obtained.
4) It doesn’t have a login system for storing user information.
Methodology
Code

#include<stdio.h>
#include<stdlib.h>
int main ()
{
int
menu, plates, items, bill1=0,
bill2=0,bill3=0,bill4=0,bill5=0,bill6=0,bill7=0,bill8=0,bill9=0,bill10=0,
total_ bill, chicken_ biryani=160, chicken_ biryani_ chicken_ momo = 220,
chicken_biryani_1_drink=190,
chicken_biryani_chicken_momo_1_drink= 250, fish_per_kg= 600,fish_1_drink=
650,russian_salad= 100,
sabzi= 150,Ice_cream_vanella_flavour= 130,Ice_cream_king_kolfa_flavour= 140;
char choice;
printf("\n~~~~~~Welcome to ocean View Restaurant ~~~~~~\n\n");
main:
printf("\t[1] Main Menu\n\t[2] Bill Payment\n\t[3] Exit\n\nChoice is yours\n");
scanf("%d",&menu);
system("cls");
switch(menu)
{
case 1:
menu:
printf("\n¬¬¬¬¬¬¬¬¬¬ Welcome to Main Menu ¬¬¬¬¬¬¬¬¬\n\n");
printf("\t[1] Chicken Biryani \t \t\t160Rs\n\t[2] Chicken Biryani+chicken momo\
t220Rs\n\t[3] Chicken Biryani+1 drink \t\t190Rs\n");
printf("\t[4] Chicken Biryani+chicken momo+1drink 250Rs\n\t[5] Fish Per Kg \t\t\
t600Rs\n\t[6] Fish+1 drink \t\t\t650Rs\n");
printf("\t[7] Russian Salad \t\t\t100Rs\n\t[8] Sabzi \t\t\t\t150Rs\n\t[9] Ice cream
Vanella Flavour \t\t130Rs\n");
printf("\t[10] Ice cream King Kolfa Flavour \t140Rs\n\n");
printf("Choose upto 10\n");
scanf("%d",&items);
system("cls");
switch(items)
{
case 1:
printf("Chicken Biryani\n\n");
printf("Enter the plates you want to order:\n");
scanf("%d",&plates);
bill1=chicken_biryani*plates;
printf("\nChicken Biryani= %dRs",bill1);
break;
case 2:
printf("Chicken Biryani+chicken momo\n\n");
printf("Enter the plates you want to order:\n");
scanf("%d",&plates);
bill2=chicken_biryani_chicken momo*plates;
printf("\nChicken Biryani+chicken momo= %dRs",bill2);
break;
case 3:
printf("Chicken Biryani+1 drink\n\n");
printf("Enter the plates you want to order:\n");
scanf("%d",&plates);
bill3=chicken_biryani_1_drink*plates;
printf("\nChicken Biryani+1 drink= %dRs",bill3);
break;
case 4:
printf("Chicken Biryani+chicken momo+1 drink\n\n");
printf("Enter the plates you want to order:\n");
scanf("%d",&plates);
bill4=chicken_biryani_chicken_momo_1_drink*plates;
printf("\nChicken Biryani+1 drink= %dRs",bill4);
break;
case 5:
printf("Fish\n\n");
printf("Enter the plates you want to order:\n");
scanf("%d",&plates);
bill5=fish_per_kg*plates;
printf("\nFish= %dRs",bill5);
break;
case 6:
printf("Fish+1 drink\n");
printf("Enter the plates you want to order:\n");
scanf("%d",&plates);
bill6=fish_1_drink*plates;
printf("Fish+1 drink= %dRs",bill6);
break;
case 7:
printf("Russian Salad\n\n");
printf("Enter the plates you want to order:\n");
scanf("%d",&plates);
bill7=russian_salad*plates;
printf("\nRussian Salad= %dRs",bill7);
break;
case 8:
printf("Sabzi\n\n");
printf("Enter the plates you want to order:\n");
scanf("%d",&plates);
bill8=sabzi*plates;
printf("\nSabzi= %dRs",bill8);
break;
case 9:
printf("Ice cream Vanella Flavour\n\n");
printf("Enter the bowls you want to order:\n");
scanf("%d",&plates);
bill9=Ice_cream_vanella_flavour*plates;
printf("\nIce cream Vanella Flavour=%dRs",bill9);
break;
case 10:
printf("Ice cream King Kolfa\n\n");
printf("Enter the bowls you want to order:\n");
scanf("%d",&plates);
bill10=Ice_cream_king_kolfa_flavour*plates;
printf("\nIce cream King Kolfa=%dRs",bill10);
break;
default:
printf("Error... Please select upto 10.\a");
}
printf("\n\nDO YOU WANT TO CONTINUE ON MENU\n(Press'y' for yes\nPress
'n'for No)\n");
scanf("%s",&choice);

system("cls");
if(choice=='y')
{
goto menu;
}
else if(choice=='n')
goto main;
case 2:
printf("\n`````````Bill`````````\n\n");
total_bill=bill1+bill2+bill3+bill4+bill5+bill6+bill7+bill8+bill9+bill10;
printf("\nTotal Bill=%dRs\n\n",total_bill);
printf("/ / / / thanks for visiting \\ \\ \\ \\\n");
break;
case 3:
printf("\n\nYou haven`t payed your bill. please pay your bill\a\n");
goto main;
printf("Thanks\n");
break;
}
}

We have used the following code to prepare the restaurant billing system:
In above program we have used two header files “stdio.h” and “conio.h”. We
have used local variable (The variables that are declared inside the main function.
It can be used within function that defined it) like menu, plates, items ,billsetc.in
the program. Switch case statement (Switch statement in C tests the value of a
variable and compares it with multiple cases. Once the case match is found, a
block of statements associated with that particular case is executed.) has also
been used.

Flowchart diagram
Tool’s and Platform

The tools we used to create our project is (Dev C++). Dev C++ is a fully featured
graphical IDE (Integrated Development Environment) that uses the Min Gw
compiler system to create Windows as well as Console based C/C++ applications .

Discussion and Conclusion

Discussion
Hereby we were able to create restaurant billing system. We were able to provide
customers some quality time in restaurant. It is convenient and faster service can
be given to the customers.
Skills Developed

We developed following skills during our project:


1. Improved the ability to work quickly and with team members.
2. Improved communication and presentation skills.
3. Improved Ability to handle file operations.
4. Improved Ability to write different structures and functions.
5. Ability to handle exceptions also improved.

Conclusion

After Completion of “Restaurant Billing System” software program we


Understood and learned the software development, validation of software
program and other technical terms related to development of software program
using ‘C’ programming language.
Appendix

First of all, we will declare and initialize integer type variables. All those will be the
variables that we have needed in the menu section. We have taken almost 10
items in the menu section and declared them.

We will take another character type variable which is choice, this is for applying
conditions. Now we will print some statements, then we will apply the switch
statement on the menu variable. Then we will apply a nested switch statement
inside the menu section which will be items, in which we will introduce 10 cases
of items.

In each case, we will ask for plates to order and a formula to calculate the bill
individually. And formula we will apply is like bill1=chicken biryani*plates; We
have used a clear screen for clearing screen in each step. In the default section,
we have applied a statement if the user will press any key other than 1 to 10
items.
After case 1, we have printed a statement which is like do you want to continue
on the menu. If yes then press y and if no then press n. then we apply the if
condition in which we apply condition which is choice==’y’. and we will then use
the goto statement which will take control inside the menu. And if we press ‘n’
then control will move to the body of the main.

After that, we use case 2 which is bill payment, in which the user will pay their bill.
And after case 3 is an exit from the program, and if somebody wants to go
without paying the bill then there will be an error message with a beep sound will
be produced and the message is you haven’t paid your bill, kindly pay your bill
first. After paying the bill, thank you for visiting message will be displayed.

References

https://coding.com/restaurant-billing-system-in-c
https://www.slideshare.net/harshmathur18/harsh-mathur-final-year-project-
report-on-restaurant-billing-system

You might also like