A C# Windows Forms application that simulates a drink vending system. Users can select drinks, and the program keeps track of inventory and sales. When a drink is selected, the stock is updated, and the sales total is displayed.
- Drink Selection: Choose from a variety of drinks:
- Cola
- Lemon Lime
- Cream Soda
- Root Beer
- Grape Soda
- Inventory Management:
- Each drink has an initial stock of 20 items.
- When a drink is selected, the stock is updated, and the drink count is displayed.
- If a drink is out of stock, an error message is shown.
- Sales Tracking:
- The program tracks the total sales in real-time, with the total amount displayed in dollars.
- Sales are calculated by multiplying the cost of the selected drink (in cents) by the quantity sold.
- C#: Core programming language.
- Windows Forms: Used to build the graphical user interface.
- .NET Framework: Platform used to develop and run the application.
- Open the solution file (
vendingMachine.sln) in Visual Studio. - Build and run the project.
This game was developed as part of a Chapter 9 assignment for my programming class. The folder name Drawdy_chapter9_2 reflects the required naming convention for class submissions.