CP Mini Project
CP Mini Project
CP Mini Project
MINI PROJECT
Submitted by
SRIJA. T -73772222119
KAMAL RAJ.S - 73772222107
60CSOO1-C PROGRAMMING
in partial fulfillment of the requirement
for the award of the degree
of
B.TECH
in
DECLARATION
1
knowledge, similar work has not been submitted to “ANNA UNIVERSITY
CHENNAI” for the requirement of Degree of B.TECH. This Mini Project report
is submitted on the partial fulfilment of the requirement of the award of
Degree of B.TECH.
Place: Tiruchengode
Date: 26/03/2023
TABLE OF CONTENT
2
S.NO TITLE PAGE NO
1 ABSTRACT 4
2 OBJECTIVE 4
3 INTRODUCTION 5
4 PROBLEM STATEMENT 6
5 MODULE DESCRIPTION 7
6 CODE 8
7 INPUT 11
8 OUTPUT 11
ABSTRACT
3
The coffee shop billing project aims to develop a billing system for
a coffee shop that can efficiently handle customer orders, generate
accurate bills, and manage inventory. The system will be designed to
streamline the billing process, reduce errors, and increase customer
satisfaction. It will also provide the coffee shop management with
valuable data on sales, inventory, and customer preferences. The project
will involve the use of various technologies, such as a user-friendly
interface for order entry, a database for tracking inventory and sales, and
an automated billing system for generating accurate bills. The coffee
shop billing system will be a valuable asset to the coffee shop, improving
operational efficiency and customer experience.
OBJECTIVE
4
INTRODUCTION
PROBLEM STATEMENT
The current manual billing system used by the coffee shop is time-
consuming and prone to errors. The lack of an efficient billing system has
5
resulted in slow service and inaccurate billing, leading to dissatisfied
customers. The current system also lacks a mechanism for inventory
tracking, making it difficult for the coffee shop management to make
informed decisions on inventory management and pricing.
The coffee shop needs a reliable and efficient billing system that
can automate the billing process, streamline customer orders, and
manage inventory. The system should be user-friendly, easy to navigate,
and reduce errors in the billing process. The coffee shop also needs a
system that can generate valuable data on sales, inventory, and customer
preferences, which can be used by management to make informed
decisions on inventory management and pricing.
Therefore, the problem statement for the coffee shop billing project
is to develop a billing system using the C programming language that can
automate the billing process, streamline customer orders, and manage
inventory. The system should be designed to reduce errors in billing,
improve operational efficiency, and increase customer satisfaction. It
should also provide valuable data on sales, inventory, and customer
preferences that can be used by the coffee shop management to make
informed decisions on inventory management and pricing.
MODULE DESCRIPTION
6
User Interface Module: This module will provide a user-friendly interface
for order entry. It will allow the user to enter customer orders, view the
menu, and select payment options.
Billing Module: This module will calculate the bill for each order and
generate an accurate receipt. It will include the cost of each item, taxes
and discounts.
Error Handling Module: This module will handle errors that may occur
during the billing process, such as incorrect orders or payment
processing errors.
CODE
#include <stdio.h>
int main()
{
int b[10],z,x[100],a,r[100];
7
int n,i,j,s=0;
printf("\t\t\t\t\t\t Menu Card");
printf("\nNumber\tFoods:\t\t\t\t\tRs.");
printf("\n 1\t Tea\t\t\t\t\t10");
printf("\n 2\t Coffee \t\t\t\t15");
printf("\n 3\t Cold Coffee\t\t\t\t50");
printf("\n 4\t Milk Shake\t\t\t\t60");
printf("\n 5\t Juice\t\t\t\t\t40\n");
printf("\nEnter Table Number:");
scanf("%d",&a);
printf("Enter Number of Items: ");
scanf("%d",&n);
for(i=1;i<=n;i++)
{
printf("\nEnter Food Number: ");
scanf("%d",&b[i]);
printf("Enter Qty: ");
scanf("%d",&x[i]);
}
printf(" -----------------------------------------------------------------------------------------------------
---------------\n");
printf("\t\t\t\t\t\tABC Restaurant\n");
printf("\t\t\t\t\t\t Tirupur,Tamil Nadu\n");
printf("\t\t\t\t\t\tGSTIN:PK78ASIN6H78WQ1\n");
printf("\tPhone Number: 9300230011”);
printf(“\t\t\t\t\t\tInovice Number: TN0067Q9\n”);
printf(“\Te-Mail:[email protected]”);
printf(“\t\t\t\t\t\tTable Number:%d\n”,a);
printf(“ -----------------------------------------------------------------------------------------------------
---------------\n”);
printf(“\n\tItem \t\tQty\t\tRate\t\tTotal”);
printf(“\n”);
for(i=1;i<=n;i++){
switch(b[i]){
case 1:
8
printf(“\n\tTea “);
printf(“\t\t%d”,x[i]);
printf(“\t\t10”);
r[i]=x[i]*10;
printf(“\t\t%d”,r[i]);
break ;
case 2:
printf(“\n\tCoffee “);
printf(“\t\t%d”,x[i]);
printf(“\t\t15”);
r[i]=x[i]*15;
printf(“\t\t%d”,r[i]);
break ;
case 3:
printf(“\n\tCold Coffee “);
printf(“\t\t%d”,x[i]);
printf(“\t\t50”);
r[i]=x[i]*50;
printf(“\t\t%d”,r[i]);
break ;
case 4:
printf(“\n\tMilk Shake “);
printf(“\t\t%d”,x[i]);
printf(“\t\t60”);
r[i]=x[i]*60;
printf(“\t\t%d”,r[i]);
break ;
case 5:
printf(“\n\tJuice “);
printf(“\t\t%d”,x[i]);
printf(“\t\t40”);
9
r[i]=x[i]*40;
printf(“\t\t%d”,r[i]);
break ;
}
}
printf(“ \n-------------------------------------------------------------------------------------------------
-------------------\n”);
printf(“\t\t\t\t\t\tTotal Qty: %d”,n);
for(i=1;i<=n;i++){
s=s+r[i];
}
printf(“\n\t\t\t\t\t\tSub Total: %d”,s);
printf(“\n\t\t\t\t\t\Tcgst IN: %d”,s/9);
printf(“\n\t\t\t\t\t\Tsgst IN: %d”,s/9);
printf(“\n\t\t\t\t\t\Tgrand TOTAL : %d”,s+(s/9)+(s/9));
printf(“\n\n\t\t\t\t\Tthank YOU VISIT AGAIN”);
return 0;
}
INPUT:
10
Enter Qty : 3
OUTPUT:
----------------------------------------------------------------------------------------------------------
ABC Restaurant
Tirupur, Tamil Nadu
GSTIN : PK78ASIN6HWQ1
Phone Number : 9300230011 Invoice Number:
TN0067Q9
E-Mail : [email protected] Table Number : 23
----------------------------------------------------------------------------------------------------------
Item Qty Rate Total
Tea 3 10 30
Milk Shake 5 60 300
Total Qty: 2
Sub Total : 330
CGST IN: 36
SGST IN:36
GRAND TOTAL: 402
11