Skip to content

Latest commit

 

History

History
113 lines (81 loc) · 3.15 KB

File metadata and controls

113 lines (81 loc) · 3.15 KB

Java Mini Projects 🚀

This repository contains a collection of Java mini projects that I created while learning and practicing Object-Oriented Programming (OOP) concepts.
Each project demonstrates real-world system simulations such as banking transactions, movie ticket booking, and more to come.

The aim of this repo is to practice core Java concepts like:

  • Classes & Objects
  • Inheritance
  • Encapsulation
  • Packages
  • Exception Handling

📌 Mini Projects

🎬 Movie Ticket System

Description: This project simulates a simple movie ticket booking system. It manages the number of available seats in a theatre and lets users book tickets until the seats are filled.

Features in Code:

A MovieTicket class to store and update available seats

A method to book tickets if seats are available

A Main class that handles user booking and displays updates

Sample Output:

Welcome to the Movie Ticket System 🎬 Available Seats: 50 You booked 3 tickets successfully! Remaining Seats: 47


🏦 Bank Account System

Description: This project demonstrates a bank account management system. It allows creating an account, depositing money, withdrawing money, and checking the balance.

Features in Code:

A BankAccount class with attributes (account holder, account number, balance)

Methods to deposit, withdraw, and display account details

A BankMain class to test and simulate transactions

Sample Output:

Account Holder : Divyanshi Account Number : 59800 Deposited: Rs 2000.0 Withdrawn: Rs 500.0 Balance : Rs 1500.0


🍔 Food Delivery System

Description:
A console-based food ordering and billing system. It allows customers to enter their name, select a food item from a menu, choose quantity, and then generates a bill.

Features in Code:

  • A FoodDelivery class with customer details, food item, quantity, and price calculation
  • Fixed price per item (Rs 150)
  • Dynamic bill generation with total cost calculation

Sample Output:
Welcome to the Food Delivery System 🍔 Enter your name: Divyanshi

Available Menu:

Cheese Burger Veggie Pizza Pasta Alfredo Paneer Sandwich French Fries Spring Rolls

Enter your choice (1-6): 2 Enter quantity: 3

================================== FOOD DELIVERY BILL Customer Name : Divyanshi Food Item : Veggie Pizza Quantity : 3 Price/Item : Rs 150.0 Total Amount : Rs 450.0


🏃 Fitness Tracker System

Description:
A mini project that simulates a fitness tracker. It calculates calories burned based on the activity and duration, using constructor overloading to handle different workout inputs.

Features in Code:

  • A Workout class with attributes (activity name, duration, calories burned)
  • Multiple constructors (default, activity-only, activity + duration)
  • Professional workout summary output

Sample Output:
Workout Summary Activity : Walking Duration : 30 minutes Calories Burned: 100 kcal Workout Summary Activity : Swimming Duration : 45 minutes Calories Burned: 225 kcal