Giter VIP home page Giter VIP logo

e-commerce-application-assignment's Introduction

๐Ÿ›’ E-Commerce Application Assignment ๐Ÿ›’

๐Ÿ“‹ Objective:

Develop a simple eCommerce application using Object-Oriented Programming (OOP) principles in Java. The application should allow users to manage products, customers, and orders.

๐Ÿ”ง Requirements:

๐Ÿ—๏ธ Classes and Relationships:

  • ๐Ÿ›๏ธ Product
    • Attributes: id, name, description, price, stockQuantity
    • Methods: Constructors, getters, setters, toString()
  • ๐Ÿ‘ค Customer
    • Attributes: id, name, email, address
    • Methods: Constructors, getters, setters, toString()
  • ๐Ÿ“ Order
    • Attributes: id, customer, productList (List of Product), totalAmount
    • Methods: Constructors, getters, setters, calculateTotalAmount(), toString()
  • ๐Ÿ“ฆ OrderManager
    • Attributes: orderList (List of Order)
    • Methods: addOrder(Order order), removeOrder(int orderId), viewAllOrders()
  • ๐Ÿ‘ฅ CustomerManager
    • Attributes: customerList (List of Customer)
    • Methods: addCustomer(Customer customer), removeCustomer(int customerId), viewAllCustomers()
  • ๐Ÿท๏ธ ProductManager
    • Attributes: productList (List of Product)
    • Methods: addProduct(Product product), removeProduct(int productId), viewAllProducts(), updateStock(int productId, int newStock)

๐Ÿš€ Main Application:

Create a Main class with a main method to interact with the user. Implement a simple text-based menu to perform the following actions:

  • โž• Add a new product
  • โŒ Remove a product
  • ๐Ÿ“ƒ View all products
  • โž• Add a new customer
  • โŒ Remove a customer
  • ๐Ÿ“ƒ View all customers
  • ๐Ÿ†• Create a new order
  • ๐Ÿ“ƒ View all orders

๐Ÿ“‚ Project Structure:

The project should be organized into packages to separate different concerns:

  • model: Contains the Product, Customer, and Order classes.
  • manager: Contains the OrderManager, CustomerManager, and ProductManager classes.
  • main: Contains the Main class with the main method.

e-commerce-application-assignment's People

Contributors

se-mahmoudabdelaal avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.