Skip to content

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 

Repository files navigation

ONLINE AUCTION SYSTEM

Project Overview

The Online Auction System is a console-based Java application that simulates an auction process. Users can place bids on a product, and the system automatically determines the highest bidder as the winner. The application allows multiple participants to join the auction and validates bids based on the starting price.

This project demonstrates the use of Java programming concepts such as classes, objects, ArrayList, loops, conditional statements, user input handling, and random message generation.


Features

  • Product auction management
  • Multiple bidder registration
  • Dynamic addition of new bidders
  • Bid validation based on starting price
  • Automatic winner selection
  • Console-based user interface
  • Random congratulatory messages for winners

Technologies Used

  • Java
  • Object-Oriented Programming (OOP)
  • ArrayList Collection Framework
  • Scanner Class
  • Random Class

Project Structure

Classes

Bidder

Stores bidder information:

  • Bidder Name
  • Bid Amount

Main

Handles:

  • User input
  • Bid collection
  • Bid validation
  • Winner determination
  • Auction result display

How It Works

  1. Enter the product name.
  2. Enter the starting price.
  3. Register bidders and their bid amounts.
  4. Additional bidders can join the auction.
  5. The system validates each bid.
  6. The highest bid is selected automatically.
  7. The winner and winning amount are displayed.

Sample Output

===== ONLINE AUCTION SYSTEM =====

Enter Product Name: Laptop
Enter Starting Price: ₹30000

How many persons are ready to bid? 3

Person 1
Enter Name: Rahul
Enter Bid Amount: ₹35000

Person 2
Enter Name: Arjun
Enter Bid Amount: ₹40000

Person 3
Enter Name: Kavin
Enter Bid Amount: ₹38000

Anyone else interested? no

===== AUCTION RESULT =====

Product: Laptop
Winner: Arjun
Winning Bid: ₹40000

Congratulations on winning!

Concepts Used

  • Classes and Objects
  • Constructors
  • ArrayList
  • Loops
  • Conditional Statements
  • User Input Handling
  • Random Number Generation
  • Object-Oriented Programming

Applications

  • Online Marketplace Auctions
  • Product Bidding Systems
  • E-Commerce Platforms
  • Educational Java Projects
  • Auction Simulations

Future Enhancements

  • User Authentication
  • Database Integration
  • GUI using Java Swing/JavaFX
  • Online Payment Integration
  • Auction Timer
  • Bid History Tracking
  • Multiple Product Auctions

Author

Dhinesh G


License

This project is developed for educational and learning purposes.

About

A console-based Online Auction System developed in Java that allows multiple users to place bids on a product, accepts additional bidders dynamically, and determines the highest bidder as the winner.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages