Skip to content

Fawry Internship: Build a simple Java E-Commerce app πŸ›’. Manage products, customers, and orders. Use a menu for actions like add, view, and remove. πŸ’»πŸ“¦

Notifications You must be signed in to change notification settings

SE-MahmoudAbdelaal/E-Commerce-Application-Assignment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

11 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ›’ 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.

About

Fawry Internship: Build a simple Java E-Commerce app πŸ›’. Manage products, customers, and orders. Use a menu for actions like add, view, and remove. πŸ’»πŸ“¦

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages