Skip to content

πŸ“š Delailia's Bookshop Management System 🌟 : Manage your bookshop with delight !✨

Notifications You must be signed in to change notification settings

MariamElkholeyy/Delailia-Bookshop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ“š Delailia's Bookshop Management System 🌟

image

πŸ“– Description

Welcome to Delailia's Bookshop! πŸŽ‰πŸŽ‰
This is a fully-fledged object-oriented bookstore management system designed using strong encapsulation principles. The system allows both Employees πŸ‘©β€πŸ’ΌπŸ‘¨β€πŸ’Ό and Clients πŸ‘€ to interact seamlessly with the bookstore.

Key features include:

  • Clients can place orders, check book prices, and search for books πŸ”πŸ“š.
  • Employees have access to additional functionalities like managing inventory πŸ“¦, updating records ✏️, and viewing sales history πŸ’³πŸ“Š.

πŸ“‘ Table of Contents


🎯 Features

Client Features πŸ§‘β€πŸ’»

  • Place Orders: Easily order multiple books at once πŸ›’.
  • Check Prices: Get real-time pricing information for any book πŸ’°.
  • Search for Items: Efficiently search for books by title, author, or genre πŸ”.

Employee Features πŸ‘©β€πŸ’Ό

  • Add to Inventory: Add new books, magazines, or DVDs to the store πŸ“šπŸ“–.
  • Update Items: Modify existing inventory details such as price, title, or author ✏️.
  • View Customer Orders: Review past customer orders and view total sales πŸ’³πŸ“Š.
  • Manage Inventory: Search for specific items in the inventory πŸ”πŸ“¦.

πŸ’» Installation

To run this application on your local machine:

  1. Clone the repository:

    git clone https://github.com/yourusername/Delailias-Bookshop.git
  2. Navigate to the project directory:

    cd Delailias-Bookshop

Note: Ensure you have Python installed on your machine before running the script. If you are using another language, adjust accordingly.


πŸ› οΈ Usage

Client Interaction Example πŸ§‘β€πŸ’»

Here’s an example walkthrough of how a client can interact with the system:

---- Welcome to Delailia's Bookshop πŸ“š ----
Are you an Employee or a Client ?: client
Enter Name : John Doe
----- Welcome John Doe -----
1. Place an Order πŸ›’
2. Check Price πŸ’°
3. Search for an Item πŸ”
Enter your choice -> 1
**********************
How many items do you want to order? 2
Enter the title of the book? Harry Potter and the Philosopher's Stone
Item exists!
Do you want the Details? (y / n) y
------- Details ---------
Title : Harry Potter and the Philosopher's Stone
Author : J.K. Rowling
Price : 12.99 EGP
**********************
Enter the title of the book? Inception
Item exists!
Do you want the Details? (y / n) y
------- Details ---------
Title : Inception
Author : Christopher Nolan
Price : 14.99 EGP

Employee Interaction Example πŸ‘©β€πŸ’Ό

Here’s an example walkthrough of how an employee can interact with the system:

---- Welcome to Delailia's Bookshop πŸ“š ----
Are you an Employee or a Client ?: employee
Enter Name : Alice Smith
Enter your Role : Manager
Enter the intended passcode : 1234
---- Employee Menu ----
1. Add to Inventory πŸ“¦
2. Check the Price for an Item πŸ’°
3. Search for an Item πŸ”
4. View Customer Orders πŸ“Š
5. Update an Item ✏️
Enter an Option -> 1
********************** What do you want to add to the inventory? : **********************
1. Book πŸ“–
2. Magazine πŸ“°
3. DVD πŸŽ₯
Enter a Number -> 2
.................................................................................................................................
Title of the Magazine : Time Out
The Author : David Walsh
The Issue Number : July 2024
Publication Date : 2024-07-01
Enter the Editor : John Doe
Enter Price : 5.99
Time Out by David Walsh is added Successfully βœ…
---- Employee Menu ----
1. Add to Inventory πŸ“¦
2. Check the Price for an Item πŸ’°
3. Search for an Item πŸ”
4. View Customer Orders πŸ“Š
5. Update an Item ✏️
Enter an Option -> 4
Customer: John Doe
Items:
- Harry Potter and the Philosopher's Stone ($12.99)
- Inception ($14.99)
Total: $27.98 πŸ’Έ
---- Employee Menu ----
1. Add to Inventory πŸ“¦
2. Check the Price for an Item πŸ’°
3. Search for an Item πŸ”
4. View Customer Orders πŸ“Š
5. Update an Item ✏️
Enter an Option -> 5 **********************
What do you want to Update? : **********************
1. Book πŸ“–
2. Magazine πŸ“°
3. DVD πŸŽ₯
Enter a Number -> 1
What is the title of the book? Harry Potter and the Philosopher's Stone
Item exists!
What do you want to Update? :
1. Title πŸ“š
2. Author πŸ‘©β€πŸŽ¨
3. Genre 🎭
4. ISBN πŸ”’
5. Number of Pages πŸ“„
6. Price πŸ’°
Enter a Number -> 6
New Price of the Book : 300
Harry Potter and the Philosopher's Stone is updated Successfully βœ…

🎯 Class Diagram

classDiagram
    class Item {
        +str title
        +str author
        +float price
        +get_title()
        +get_author()
        +get_price()
        +set_price(price)
        +BasicDetails()
        +Update()
        +Display()
    }
    class Book {
        +str genre
        +int isbn
        +int pages
        +Display()
        +Update()
    }
    class Magazine {
        +int issue_number
        +str publication_date
        +str editor
        +Display()
        +Update()
    }
    class DVD {
        +str director
        +int duration
        +str genre
        +Display()
        +Update()
    }
    class Employee {
        +str name
        +str role
        +add_book_to_inventory(bookstore, book)
    }
    class Client {
        +str name
        +search_item(bookstore, title)
    }
    class Order {
        +str customer_name
        +list items
        +add_item(item)
        +calculate_total()
        +displayItems()
    }
    class Bookstore {
        +list inventory
        +list employees
        +list orders
        +add_employee(employee)
        +add_item(item)
        +search_by_title(title)
        +place_order(customer_name, order)
        +display_orders()
    }

    Item <|-- Book
    Item <|-- Magazine
    Item <|-- DVD
    Employee --> Bookstore
    Client --> Bookstore
    Order --> Bookstore
Loading

About

πŸ“š Delailia's Bookshop Management System 🌟 : Manage your bookshop with delight !✨

Topics

Resources

Stars

Watchers

Forks

Languages