Year: 2025
Type: School Project
School: IMS-T Switzerland
// 02

Vending Machine

STACK
Bash Shell-Scripting

About the Project

This project is a complete simulation of a vending machine, implemented in Bash. The goal was to create an interactive terminal application that guides the user through a realistic purchasing process. The program manages a randomized inventory, supports three different payment methods, and returns the correct amount of change.

What Was the Task?

The task was to write a fully functional Bash script that implements fundamental programming concepts such as functions, loops, user input, and conditional logic. In addition, the program had to be user-friendly and handle invalid input reliably.

What I Learned

  • Structured programming with Bash functions
  • Handling user input and input validation
  • Randomized logic and inventory management
  • Simulation of payment methods (Cash, TWINT, PayPal)
  • Error handling and clean program structure in Shell Scripts
Vending Machine Code Preview
PROJECT DETAILS
Period2025
SchoolIMS-T Switzerland
TypeSchool Project
StatusCompleted
× Home Projects Skills Über mich Kontakt