0% found this document useful (0 votes)
75 views10 pages

Customer Billing System

The document describes a customer billing system project developed in C programming language. It consists of five modules: displaying the menu, adding/pricing items, deleting items, applying discounts, and processing payments. The project aims to automate the billing process for a college cafe using concepts like arrays, structures, functions, and file handling. It provides a convenient way to manage orders and payments to increase sales and customer satisfaction.

Uploaded by

harmandeep kaur
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
75 views10 pages

Customer Billing System

The document describes a customer billing system project developed in C programming language. It consists of five modules: displaying the menu, adding/pricing items, deleting items, applying discounts, and processing payments. The project aims to automate the billing process for a college cafe using concepts like arrays, structures, functions, and file handling. It provides a convenient way to manage orders and payments to increase sales and customer satisfaction.

Uploaded by

harmandeep kaur
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 10

Customer billing system

Final Report Of Computer programming

Group Members
S.no Roll no. Name Reg no.
1
2
3
4

Submitted By :
Submitted to :
Acknowledgement
I would like to express my gratitude to all those who have contributed to the
successful completion of my CSE101 Computer Programming final project report.

First and foremost, I would like to thank my instructor for providing me with the
knowledge and guidance needed to complete this project. Their unwavering
support and constructive feedback have been invaluable throughout the process.

I am also grateful to my classmates, for their continuous encouragement,


insightful discussions, and collaboration during the project.

Furthermore, I would like to extend my appreciation to the resources provided by


the University, such as the computer lab facilities, online libraries, and tutorials,
which have enabled me to gain a deeper understanding of the programming
concepts and tools.

Lastly, I would like to express my heartfelt thanks to my family and friends for their
love, encouragement, and motivation throughout my academic journey. Their
unwavering support has been instrumental in helping me achieve my goals.

Thank you all once again.


Introduction

The Customer Billing System project is designed to


simulate a typical customer billing system, such as a
college cafe, by automating the billing process. It aims to
provide an e cient and accurate way to manage customer
orders, prices, discounts, and payment modes. The project
is developed in the C programming language, making use
of various concepts such as arrays, structures, functions,
and file handling.

Modules

The Customer Billing System project consists of five modules that perform
specific tasks. These modules are described below:

Displaying Available Items: The first module displays the


available items on the menu in a categorized manner. The menu
items are grouped according to their type, such as meal, drink,
snacks, etc. This module provides a clear and concise view of all
the items available for customers to order.

Price/Adding Item: The second module allows the customer to


select an item from the menu and add it to their cart. Once an
item is selected, its price is displayed, and the customer can
add it to their cart. This module ensures that the customer is
aware of the price of an item before adding it to their order.

Deleting Selected Item: The third module allows the customer to


delete any selected item from their cart. This module is
especially useful in case the customer has made an error while
selecting an item. The customer can easily delete the item from
their cart without any hassle.
Discount if Applicable: The fourth module provides discounts to
the customer based on predefined conditions. For example, a
customer who orders a meal and a drink together can receive a
discount on their total order value. This module helps to
incentivize customers to order more items, thereby increasing
sales and customer satisfaction.

Payment Mode: The final module allows the customer to select


their preferred payment mode, such as cash, credit card, or
mobile wallet. This module completes the billing process by
generating a bill and recording the transaction details. The
customer can select their preferred payment mode and
complete the transaction.

Technologies Used: The Customer Billing System project is


developed in the C programming language, which is a widely
used language for system-level programming. The project uses
a modular approach, which enables the development of each
module independently, making it easier to maintain and update
the system. The project makes use of various concepts such as
arrays, structures, functions, and file handling, which are
essential for developing robust and e cient software.
DFD for Customer billing system
Conclusion
In conclusion, the Customer Billing System project provides a
convenient and e cient way to manage the billing process for
a college cafe. The project's modular design ensures that each
module is easily maintainable, making it a reliable and robust
system. The project's features, such as discounts and payment
modes, make it an attractive choice for customers, thereby
increasing sales and customer satisfaction. The project is
developed in the C programming language, which is a widely
used language for system-level programming, making it easier
for developers to understand and modify the code. Overall, the
Customer Billing System project is a useful tool for managing
customer orders and streamlining the billing process.

Program Source Code


#include <stdio.h>
#include <stdlib.h>
#include <string.h>

struct MenuItem
{
char name[50];
char type[20];
float price;
float discount;
};

struct MenuItem menu[100];


int menuCount = 0;

void displayMenu()
{
printf("Menu:\n");
for (int i = 0; i < menuCount; i++)
{
printf("%d. %s (%s) - %.2f\n", i + 1, menu[i].name,
menu[i].type, menu[i].price);
}
}

void addItem()
{
char name[50];
char type[20];
float price;
float discount;
printf("Enter name of item: ");
scanf("%s", name);
printf("Enter type of item: ");
scanf("%s", type);
printf("Enter price of item: ");
scanf("%f", &price);
printf("Enter discount of item: ");
scanf("%f", &discount);
struct MenuItem newItem = {.price = price, .discount = discount};
strcpy(newItem.name, name);
strcpy(newItem.type, type);
menu[menuCount] = newItem;
menuCount++;
printf("Item added successfully!\n");
}

void deleteItem()
{
int index;
printf("Enter the item number to delete: ");
scanf("%d", &index);
if (index < 1 || index > menuCount)
{
printf("Invalid item number.\n");
return;
}
for (int i = index - 1; i < menuCount - 1; i++)
{
menu[i] = menu[i + 1];
}
menuCount--;
printf("Item deleted successfully!\n");
}

void applyDiscount()
{
float discount;
printf("Enter the discount percentage: ");
scanf("%f", &discount);
for (int i = 0; i < menuCount; i++)
{
menu[i].discount = discount;
}
printf("Discount applied successfully!\n");
}

void makePayment()
{
float total = 0;
float discountTotal = 0;
char mode[20];
printf("Menu:\n");
for (int i = 0; i < menuCount; i++)
{
printf("%d. %s (%s) - %.2f\n", i + 1, menu[i].name,
menu[i].type, menu[i].price);
total += menu[i].price;
discountTotal += menu[i].price * (menu[i].discount / 100);
}
printf("Total: %.2f\n", total);
printf("Discount: %.2f\n", discountTotal);
printf("Net Total: %.2f\n", total - discountTotal);
printf("Enter the payment mode: ");
scanf("%s", mode);
printf("Payment made successfully using %s.\n", mode);
}

int main()
{
int choice;

while (1)
{
printf("Welcome to the restaurant menu system.\n");
printf("Please select an option:\n");
printf("1. Display menu\n");
printf("2. Add item\n");
printf("3. Delete item\n");
printf("4. Apply discount\n");
printf("5. Make payment\n");
printf("6. Exit\n");
printf("Enter Your Choice from above : ");
scanf("%d", &choice);

switch (choice)
{
case 1:
displayMenu();
break;
case 2:
addItem();
break;
case 3:
deleteItem();
break;
case 4:
applyDiscount();
break;
case 5:
makePayment();
break;
case 6:
printf("Thank you for using the restaurant menu system.\n");
exit(0);
default:
printf("Invalid choice. Please try again.\n");
break;
}
}

return 0;
}

Output:

Thank You

You might also like