Skip to content
/ ChordBox Public

Music Store System is a Java-based application that simulates a music store, allowing users to manage instrument orders and apply discounts. The system offers functionality for calculating total order prices with discounts and listing available instruments.

Notifications You must be signed in to change notification settings

ml3m/ChordBox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ChordBox

Work in progress..

Project logo
                          +-------------------------+
                          |       Item              |
                          +-------------------------+
                          | - name: String          |
                          | - price: double         |
                          +-------------------------+
                          | + getName(): String     |
                          | + getPrice(): double    |
                          +-------------------------+
                                    ^
                                    |
                +--------+----------+-------------------+
                |        |          |                   |
    +------------------+ | +-----------------+  +-----------------+
    |       CD         | | |       Disk      |  |    Instrument   |
    +------------------+ | +-----------------+  +-----------------+
    | + sell(): void   | | | + sell(): void  |  | + sell(): void  |
    +------------------+ | +-----------------+  +-----------------+
                         |
                +-------------------------+
                |       Poster            |
                +-------------------------+
                | + sell(): void          |
                +-------------------------+


+----------------------------------+      +------------------------------------+
|           Sellable               |      |          Discountable              |
+----------------------------------+      +------------------------------------+
| <interface>                      |      | <interface>                        |
| + sell(): void                   |      | + applyDiscount(): double          |
+----------------------------------+      +------------------------------------+

+----------------------------------+      +------------------------------------+
|           Discount               |      |           Order                    |
+----------------------------------+      +------------------------------------+
| - amount: double                 |      | - item: Item                       |
| - type: String                   |      | - discounts: Discount[]            |
+----------------------------------+      +------------------------------------+
| + Discount(amount, type)         |      | + Order(item, discounts)           |
| + calculateDiscount(price):double|      | + applyDiscount(): double          |
+----------------------------------+      +------------------------------------+

+----------------------------------+      +------------------------------------+
|           Customer               |      |           Payment                  |
+----------------------------------+      +------------------------------------+
| - name: String                   |      | - method: String                   |
| - email: String                  |      | - amountPaid: double               |
+----------------------------------+      +------------------------------------+
| + getName(): String              |      | + processPayment(): void           |
| + getEmail(): String             |      +------------------------------------+
+----------------------------------+

+----------------------------------+      +------------------------------------+
|         InputDevice              |      |         OutputDevice               |
+----------------------------------+      +------------------------------------+
| - random: Random                 |      |                                    |
+----------------------------------+      |                                    |
| + getType(): String              |      | + writeMessage(message: String)    |
| + nextInt(): Integer             |      | + printArray<T>(array: T[]): void  |
| + getLine(): String              |      +------------------------------------+
| + getNumbers(N: int): Integer[]  |
+----------------------------------+

                          +-------------------------+
                          |     MusicStoreSystem    |
                          +-------------------------+
                          |   <Main Class>          |
                          +-------------------------+
                          | + main(args: String[])  |
                          +-------------------------+

About

Music Store System is a Java-based application that simulates a music store, allowing users to manage instrument orders and apply discounts. The system offers functionality for calculating total order prices with discounts and listing available instruments.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages