Super-Market Billing System



About me :
Hello,I'm Ashish from Hyderabad. I'm currently pursuing my B.Tech(C.S.E) in St.Martins Engineering College.So we had completed our C course and we had to make a project completely using C language. I selected Super Market Billing system. 

Project Idea :
This project is to help small scale groceries shop owner to grow digitally.It has Cashier Login and Admin Login where admin can add,update,delete the products,the cashier can view products, sum up whatever products the customer have selected to make a bill and generate the bill or add any discounts.The code is written completely in C Language.




Description :
This project have two portals one is admin portal and cashier portal.The admin is the owner of the market. Since the owner knows everything about the market I have given all the rights about the products(product code, name, price) and admin can view all the products, add products, modify a product, delete a product. Whereas the cashier have two options one is view products and other is billing.
So lets see them from the below screen shots

Admin portal

Cashier Portal

Admin Menu

Cashier Menu


Highlights :
In this project the main highlight was the color changing boot animation. Which changes into 5 colors.For this animation I had to check the time to display the image and the time to change into the next color. While doing this animation there were few glitches the color was changing even with the background. After many attempts I anyhow resolved those glitches. And the next is the Super Market logo. I did'nt have any idea about creating a logo so to keep it simple and attractive I have used the Block(ASCII code: 219) character to create the logo.

Tech Stacks :
For this project I have used an external .h file. Using this we can change the color of texts, position the cursor. The colors for the boot animation are taken from this file. I have used 3 files. One is the products file, where all the products are stored and the second file is to store the login details of the admin(username and password) and the third one is to store cashier login details(username,password).

So,What I learned is that the C language is the base language for a programmer.From this project I learned a lot about files how they store the data, what are all the modes etc. From this C course I have learnt that to learn any new language we need to be perfect with C basics. While doing this project I realized that C is very vast language and how we can use this language.The problem I faced with the billing is that the prices I have stored in the form of strings in the file so first I need to convert into float value and then I have to round it off to integer. So conversion of string value to integer is easy but to convert into floating point value I have tried using ASCII values but it didn't work. So, after searching I found out a function 'strtod' which is used to to convert string into a floating point value.Then using round function I converted into integer. And the other difficult thing was the password thing, that is when I type a password wrong I cannot delete a character, when I click a backspace it takes as a character but not as a event as i'm storing each character at a time to print a * for every entry and I cannot delete a printed character, So I disabled the backspace key.Which is a temporary solution.The main thing is that now I learnt how to search the solution of a particular bug or problem in the ocean of information (internet)

Finally, Even after submission I will be adding more features like customer details,statistics of the sales etc.

Downloads :
To download this application click this
For the Source code :

Demo Video :



Regards,
K. Ashish

Comments

Post a Comment