/vendomatic

A console application created in Visual Studio that simulates a vending machine for stuffed animals, allowing users to add money, make purchases, and generate transaction logs. The inventory is read from a CSV file and the application includes an optional sales report menu. Helped designed UI and implemented purchasing functionality

Primary LanguageC#

#PlushPaloozaVendoMatic

PlushPaloozaVendoMatic

PlushPalooza VendoMatic

Welcome to PlushPalooza VendoMatic, where cuteness is our currency and you will leave with a new best friend! This is a command-line interface program that simulates a vending machine selling stuffed animals. The program allows users to view the inventory of stuffed animals, add money, select a product, and finish the transaction.

Getting Started

These instructions will help you get a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

You will need the following installed on your machine to run this project:

  • Visual Studio - The IDE used for this project
  • .NET Framework 4.7.2 - The runtime used for this project

Installing

Clone this repository onto your local machine using the following command:

git clone https://github.com/Jfrancioso/vendomatic.git

Open the solution file in Visual Studio.

Run the program by pressing F5 or clicking on the "Start" button in the toolbar.

Usage

Upon running the program, you will be presented with a main menu with three options:

  • Display: View the inventory of stuffed animals
  • Purchasing: Purchase a stuffed animal
  • Exit: Exit the program

Display

Selecting the "Display" option will display the inventory of stuffed animals currently available for purchase. Each stuffed animal is represented by a code and displays its name, price, and current stock.

Purchasing

Selecting the "Purchasing" option will take you through the process of purchasing a stuffed animal. This process includes the following steps:

  • Add money: Users can add money in whole dollar amounts to their current balance.
  • Select product: Users can select a product by entering the corresponding code. The program will display the name and price of the product and prompt the user to confirm their selection.
  • Dispense product: If the user has enough money in their current balance, the program will dispense the product and deduct the cost of the product from the user's current balance. The program will also display a unique message associated with the stuffed animal that was purchased.
  • Finish transaction: Users can finish the transaction and receive change if applicable. The program will display the total amount spent and the change returned.

Built With

  • C#
  • .NET Framework 4.7.2

Authors

  • Joseph Francioso
  • Hadas Marcus
  • Jacob Natowicz
  • Wilson Warholic

Acknowledgments

We love all cats! Nothin further... and thank you to the fantastic students at Tech Elevator that worked on this with me (mentioned above)!