+-------------------------+
| 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[]) |
+-------------------------+
-
Notifications
You must be signed in to change notification settings - Fork 0
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.
ml3m/ChordBox
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
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 0
No packages published