C Program for Customer Billing System
Introduction:
Billing software is used to track time and billing as well as invoice clients for services and items. It supports various firm billing systems as well as the management of a chain of stores.
It also offers recurring services and a sophisticated mechanism for billing rent. Billing systems help automate time-consuming tasks, such as but not limited to invoice creation, product tracking, and other financial records.
Furthermore, because such software automatically calculates and applies tax on taxable items, you don't need to worry about it every time you bill.
Administrators: They include both system end users and those who supervise, manage, and perform routine tasks to encourage the adoption of the proposed billing system.
Users: They are the one who would use the proposed web-based billing and collection system are the customers.
Efficiency is a collection of characteristics that influence how software functions and how many resources are consumed under specific conditions. These characteristics include resource usage and temporal behaviour.
Functionality: A number of factors, such as appropriateness, correctness, compatibility, and security, have an impact on the existence of a number of functions and the assertions made about them.
Software's capacity to transition from one environment to another is influenced by a variety of elements, including adaptability, install ability, cohabitation, and replaceability.
Software's reliability refers to its ability to continue performing at a high level over an extended period of time and in a specific environment. Maturity, fault tolerance, and recoverability are three characteristics that affect this ability.
Implementing Customer Billing System in Restaurant:
A program for a restaurant billing system in C is one that aids in accurately and quickly billing customers. The restaurant billing and administration system will be displayed to us last.
In this restaurant's billing system, the biller (the person who prepares your bill) enters the menu items and the total number of items; our system then generates a bill by adding GST based on this information.
#include <stdio.h>
struct about
{
char name[50];
char adrs[100];
};
void main()
{
struct about s[10];
int i = 1, num, a, b, n, y, price, gst = 0, total = 0,quant=0;
char ch[50];
//clrscr();
// textcolor(YELLOW);
printf("\n ____________ Menu Card _________________\n\n");
printf("\n 1) All Cold-drinks (200ml) - 25rs\n\n 2) Pizza - 200rs 9) Burger - 100rs\n\n 3) Sandwitch - 60rs 10) Chicken 65 - 60rs \n\n 4) Pasta - 40rs 11) Noodles - 60rs\n\n 5) Misal pav - 50rs 12) Pav Bhaji - 85rs\n\n 6) Chicken Rice - 80rs 13) Soup - 45rs\n\n 7) Samosa - 30rs 14) Dosa - 60rs\n\n 8) Salad - 50rs 15) Paneer Masala -120rs\n ");
printf("\n\n ************************** Customer and Items Info ***************************\n");
printf("\n CUSTOMER INFORMATION : ");
printf("\n Customer Name: ");
scanf("%s", s[1].name);
printf("\n Customer Address: ");
scanf("%s", s[1].adrs);
printf("\n ******************************************************************************* \n\n");
printf("\n Enter the name of items: ");
scanf("%s", ch);
printf("\n Enter the number of item: ");
scanf("%d", &n);
printf("\n Enter the Quantity of items: ");
scanf("%d", &quant);
switch (n)
{
case 1:
n = 25;
gst = (n / 100) * 18;
total = n + gst;
break;
case 2:
n = 200;
gst = (n / 100) * 18;
total = n + gst;
break;
case 3:
n = 60;
gst = (n / 100) * 18;
total = n + gst;
break;
case 4:
n = 40;
gst = (n / 100) * 18;
total = n + gst;
break;
case 5:
n = 50;
gst = (n / 100) * 18;
total = n + gst;
break;
case 6:
n = 80;
gst = (n / 100) * 18;
total = n + gst;
break;
case 7:
n = 30;
gst = (n / 100) * 18;
total = n + gst;
break;
case 8:
n = 50;
gst = (n / 100) * 18;
total = n + gst;
break;
case 9:
n = 100;
gst = (n / 100) * 18;
total = n + gst;
break;
case 10:
n = 60;
gst = (n / 100) * 18;
total = n + gst;
break;
case 11:
n = 60;
gst = (n / 100) * 18;
total = n + gst;
break;
case 12:
n = 85;
gst = (n / 100) * 18;
total = n + gst;
break;
case 13:
n = 45;
gst = (n / 100) * 18;
total = n + gst;
break;
case 14:
n = 60;
gst = (n / 100) * 18;
total = n + gst;
break;
case 15:
n = 120;
gst = (n / 100) * 18;
total = n + gst;
break;
}
//Gst will applicable only on 100rs or above,on one purchase.
printf("\n\n ***************************** Hotel Amount ***********************************\n");
printf("\n Customer Name: %s\n", s[1].name);
printf("\n Customer Address: %s\n", s[1].adrs);
printf("\n ITEM QUANTITY PRICE GST TOTAL\n");
printf("\n %6s %6d %4d %4d %4d \n", ch, quant,n, gst, total*quant);
//textcolor(WHITE);
printf("\nThank you! Visit again\n");
printf("\n ============================================================================= \n");
}
OUTPUT:
![C Program for Customer Billing System](https://static.tutorialandexample.com/c/c-program-for-customer-billing-system1.png)
![C Program for Customer Billing System](https://static.tutorialandexample.com/c/c-program-for-customer-billing-system2.png)
![C Program for Customer Billing System](https://static.tutorialandexample.com/c/c-program-for-customer-billing-system3.png)