About the Project
Inspiration
The inspiration for this project came from understanding how invoices are used in everyday businesses. I wanted to build a simple yet realistic system that simulates real-world billing while staying beginner-friendly and easy to understand.
What I Learned
Through this project, I learned how to handle user input effectively in C++, manage multiple items using structures and vectors, and format console output neatly using iomanip. I also learned how to work with system date and time using the <ctime> library and how to manage a project using Git and GitHub.
How I Built the Project
The project was built using C++ as a console-based application. The program takes item names, quantities, and prices from the user, stores them in a structured format, and performs calculations such as subtotal, GST, and discounts. The invoice is then displayed in a well-formatted table to improve readability. Version control was handled using Git, and the final project was pushed to GitHub.
Challenges Faced
One of the main challenges was aligning the invoice output properly in the console. Since console applications do not automatically handle layouts, I had to carefully manage spacing using setw() and formatting tools. Another challenge was handling string input correctly after numeric input, which was solved using cin >> ws. Ensuring that the project remained simple yet complete was also an important learning experience.
Log in or sign up for Devpost to join the conversation.