Skip to content

saif17313/KUET-Vending-Machine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

KUET Vending Machine (C++ Console Project)

A C++ console-based vending machine simulation created as a KUET practice/project.
The repository contains the full source code and a simple payment/history text file, along with compiled build artifacts.

This project is useful for practicing C++ fundamentals + menu-driven programming (inputs, conditions, functions/classes depending on implementation) in a small, real-world style problem.


What’s in this Repository

  • 2107017.cpp — main C++ source file for the vending machine program. :contentReference[oaicite:0]{index=0}
  • Payment History.txt — a text file included for storing/keeping payment or transaction history records. :contentReference[oaicite:1]{index=1}
  • 2107017.exe, 2107017.o — compiled output files (Windows executable + object file). :contentReference[oaicite:2]{index=2}

Tip: It’s usually better to compile from source (.cpp) rather than committing .exe/.o in GitHub, but keeping them can be okay for quick demos.


Core Idea (Concept)

A vending machine program typically provides:

  • Product selection (from a set of items)
  • Payment input (cash/amount entry simulation)
  • Purchase confirmation (dispense item if paid enough)
  • Optional change calculation
  • Transaction/payment record keeping (often written to a text file)

This repo includes a Payment History file, which fits the “transaction log” concept. :contentReference[oaicite:3]{index=3}


Requirements

  • C++ compiler (GCC / MinGW / Clang)
  • Runs as a console application

Build & Run

Linux / macOS

g++ 2107017.cpp -o vending
./vending

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages