A simple command-line warung (small shop) simulation written in C.
Warung is a lightweight CLI application built using the C programming language. It simulates a small local shop where users can view available items, make purchases, and see the total cost directly from the terminal.
This project was created mainly as a learning exercise to practice basic C programming concepts such as input/output, control flow, and simple program structure.
- Simple command-line interfaces
- Item list with prices
- Purchase simulation
- Automatic total price calculation
- Food menu
- Drink menu
- Simple purchases
- Cheap food packages
The program output and user interaction are currently written entirely in Indonesian.
English language support is not available yet, but it is planned for a future update.
- Linux or Unix-base system
- GCC or Clang (C compiler)
- Basic familiarity with terminal usage
sudo apt install build-essentialClone the repository and build the program:
git clone https://github.com/IldhanSec/Warung-murah
cd Warung
gcc -Wall warung.c -o warung
./warungRun the program from the terminal:
./warungFollow the on screen instructions to select and complate a purchase
- Not available.
This project is intended fo:
- Beginners learning the C programming language
- Practicing basic logic, loops, and conditionals
- Understanding how simple CLI programs work
- This is an educational project, not a production ready system.
- The code is intentionally kept simple for learning purposes.
- Future improvements may include:
- English language support
- Better code structure using struct
- File based data storage
- Addtional features (stock, discounts, etc.)
- Indonesian language only
- Updated opening banner and program description
- CLI menu for food and drinks
- Total payment calculation with bonus/discount
- Package system (A, B, C, D)
If you find a bug or have an idea for a new feature (including language support), please open an issue on GitHub.
Your feedback is highly appreciated.