├── Quantity.txt ├── Records.txt ├── billing system.o ├── billing system.exe ├── Customer Billing System Report 1.docx ├── Customer Billing System Report 2.docx ├── Read Me.txt ├── LICENSE.txt ├── README.md └── billing system.c /Quantity.txt: -------------------------------------------------------------------------------- 1 | 2 -------------------------------------------------------------------------------- /Records.txt: -------------------------------------------------------------------------------- 1 | productno ,ProductName , Quantity 2 | , Price 1 Jeans 5 6500 2 Shirts 45 5200 -------------------------------------------------------------------------------- /billing system.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amanovishnu/customer-billing-system/HEAD/billing system.o -------------------------------------------------------------------------------- /billing system.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amanovishnu/customer-billing-system/HEAD/billing system.exe -------------------------------------------------------------------------------- /Customer Billing System Report 1.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amanovishnu/customer-billing-system/HEAD/Customer Billing System Report 1.docx -------------------------------------------------------------------------------- /Customer Billing System Report 2.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amanovishnu/customer-billing-system/HEAD/Customer Billing System Report 2.docx -------------------------------------------------------------------------------- /Read Me.txt: -------------------------------------------------------------------------------- 1 | Project Name: Customer Billing System 2 | Group Numbers: Mano Vishnu A 3 | Sai Chaitanya Kathiri 4 | Sai Kushal Mandala 5 | Tools Used: 6 | Language : C language 7 | Compiler : GCC 8 | Debugger : GDB 9 | Operating System : Windows 10 10 | Other tools Used : Valgrind, 11 | Memcheck, 12 | git, 13 | GitHub. 14 | 15 | Individual Contribution: 16 | Mano Vishnu : Coding 17 | Sai Chaitanya kathiri : Debugging 18 | Sai Kushal Mandala : Memory Error Checking. 19 | -------------------------------------------------------------------------------- /LICENSE.txt: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2024 MANOVISHNU ADEPU 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Customer-Billing-System 2 | Customer Billing System Project is a simple console application designed to demonstrate the practical use of C programming language and its features as wells as to generate an application which can be used in any departmental store, shops, cafes etc. for billing to the customer. 3 | 4 | You can use this application to keep the records such as name, address, mobile number, paid amount, due amount, payment date etc. of your regular costumer. Moreover, if you have a new customer, you can add and edit the account at any time. 5 | 6 | The source code of Customer Billing System Project in C has been written in C programming language without of the use of any graphics. The code is complete, totally error free and not that long – just. It is to be compiled in Code::Blocks using GCC compiler. 7 | 8 | ### User Defined Functions Used: 9 | 10 | Although graphics has not been used in this project, the application of user defined functions and structures have been effectively used here. The major user defined functions used in this C project are: 11 | 1. `void input()` 12 | 2. `void writefile()` 13 | 3. `void search()` 14 | 4. `void output()` 15 | 16 | The function `void input()` is used to add the new customer account i.e. with the help of this functions the parameters such as name, address, phone number, amount paid etc. are asked and entered. Another function `void writefile()` has been utilized to create a file on hard disk of computer for storing the information and data of a customer. 17 | 18 | The function `void search()` has been used to look for previously stored accounts either by name or by number of the customer. The fourth and the last user defined function used in this Customer Billing System Project in C is `void output()` which has been defined to show the result as console output. 19 | 20 | In Customer Billing System, structure has very beautifully used to group the data type in single unit. The date variables (`day`, `month` and `year`) have been grouped in the structures named date where as other variables such as name, number, street, paid amount etc. are grouped under another structure named account. 21 | 22 | Customer Billing System application is so simple to use. In order to use the application, click at the exe file and then, you will have three options to: 23 | 24 | 1. `To add account` 25 | 2. `To search account` 26 | 3. `To exit` 27 | 28 | As per your need, enter 1, 2,or 3 and follow the instructions provided by the application itself. 29 | 30 | ### Features: 31 | 32 | It can hold any number of accounts and account can be added to the program at any time. 33 | The programming of simple calculations such as calculation of due amount, balance etc. have been embed in the code of project. 34 | The Customer Billing System project in C gives you the facility of searching the account by two ways, either by name of the customer or by the number of customer. 35 | The due amount to be paid is shown as negative balance. 36 | If you have nothing to do with the program, you can directly exit from the main menu. 37 | 38 | The project can be used in many aspects, firstly the application file generated can be used. Secondly the source code of Customer Billing System project in C can be used to learn C programming and its different features such as use of user defined functions, structures etc. Submitting this C project as your college/school C project without any modifications is completely discouraged. 39 | 40 |

© Created by Manovishnu 10 | #include 11 | #include 12 | #include 13 | 14 | struct item 15 | { 16 | int productno; 17 | char productname[10]; 18 | int quantity; 19 | int price; 20 | } 21 | item; 22 | struct customer 23 | { 24 | int productno; 25 | char productname[10]; 26 | int quantity; 27 | int price; 28 | int amount; 29 | } 30 | cst[100]; 31 | struct temporary 32 | { 33 | int productno; 34 | char productname[10]; 35 | int quantity; 36 | int price; 37 | int amount; 38 | } 39 | cstr[100]; 40 | int t=0; 41 | int n=0; //used in Quantity and Records.txt 42 | int k=0; 43 | int ba=0; 44 | int ti=0; 45 | void create() 46 | { 47 | int i=0; 48 | FILE *fp; 49 | fp=fopen("Records.txt","w"); 50 | if(fp==NULL) 51 | { 52 | printf("Error\n"); 53 | } 54 | printf("\t"); 55 | printf("Enter the Number of Records:"); 56 | scanf("%d",&n); 57 | printf("\n"); 58 | FILE *fpq; 59 | fpq=fopen("Quantity.txt","w"); 60 | fprintf(fp,"productno\t,ProductName\t, Quantity\n, Price\t"); 61 | fprintf(fpq,"%d",n); 62 | fclose(fpq); 63 | while(i