Grocery Store Counter

 | 

This project is a little more complex than the previous projects I have posted. The grocery store counter is an application modeled after the manual coin counters that grocery stores previously used to balance the register. The user is able to enter amounts in cents based on the revenue they are receiving. This counter works up to $99.99.

That is the limit each register is able to carry safely in stores. Once that amount is reached, an overflow message is given to the user to reset the program. In a real world setting, that amount would have the cashier place their extra balance into the store safe. This provides safe keeping in case the store would be robbed. It is generally safer to have small amounts of cash in the register.

For user input, the application is able to take four different values. The first value is for cents. The second value is for dimes. The third value is for dollars. The fourth value is for ten dollars amounts. It is generally best practice to start entering larger values into the system. The user would start with ten dollar amounts and then work down through dollars, dimes, and finally cents. This is not a hard rule. The user can actually enter the amounts in any order.

The program is written in the C++ programming language. All of the functions are included in the main cpp file. There is also a compiled .exe file that can be executed to test the application.

View the Grocery Store Counter C++ Project on GitHub 

Share this story:

Tags: programming, c++, cpp, grocery, store, counter, software development