Skip to content

justngo/java-restaurant-system

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Java Restaurant Management System

A console-based restaurant management program written in Java.
This project simulates a small restaurant’s workflow — including order handling, payment calculation, menu setup, and revenue statistics — using arrays, loops, and formatted console output.


🍽️ Features

1. Payment System

  • Displays a formatted menu with item numbers and prices
  • Allows multiple items to be selected by number
  • Calculates:
    • Subtotal
    • Tax (12%)
    • Tips (custom percentage)
    • Final Total
  • Validates inputs and prevents invalid selections

2. Menu Setup

  • Allows editing of existing menu items (name and price)
  • Updates prices dynamically in the main system
  • Displays menu using neatly formatted console output

3. Statistics and History

  • Tracks:
    • Number of customers
    • Total revenue, tax, and tips
    • Average values per customer
  • Displays last five transaction totals using an in-memory history log

4. Exit Function

  • Ends the program gracefully with a thank-you message

🧠 Concepts Demonstrated

  • Procedural programming in Java
  • Arrays and string manipulation (split() for item parsing)
  • Nested loops and conditionals
  • Input validation with Scanner
  • Console formatting using String.format()
  • Basic data persistence using an in-memory history array

🧰 Technologies Used

  • Language: Java
  • Version: JDK 17 or newer
  • IDE: IntelliJ IDEA / Eclipse / VS Code
  • Libraries: Java Standard Library only (no external dependencies)

🚀 How to Run

  1. Clone the repository:
    git clone https://github.com/<yourusername>/java-restaurant-system.git

About

A simple Java restaurant system featuring ordering, menu setup, and sales tracking.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages