Project
Stock management
About
This program is written entirely in C++. I wrote this program to better my understanding of reading and writing from a file using C++. For an extra challenge to myself, I decided to also write a function that would work as a passcode. To open the main program, you must first enter the correct password. This was included as an anti-tampering measure for stock management. Once the correct password is entered there are 5 options provided to the user. They choose the option they want by entering the corresponding number for the option. Option 0 is to display all the stock. This is performing a read operation on the file containing the data. Option 1 is to search for an item, this is also a read operation but is focused on a specific set of data. There are two search options, to search by item name or ID number. In both cases, it searches for a specific item of data in the file and once found reads all the data on that row. Options 2 and 3 are very similar both are for performing write operations and writing over specific data items within a row. Option 2 is to change the price and Option 3 is to change the quantity. Option 4 exits the program
Example
Passcode Protection
Main Menu
Search item
Change price