https://github.com/ml3m/chordbox
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.
https://github.com/ml3m/chordbox
Last synced: 9 months ago
JSON representation
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.
- Host: GitHub
- URL: https://github.com/ml3m/chordbox
- Owner: ml3m
- Created: 2024-10-18T11:48:40.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-10-28T11:07:21.000Z (about 1 year ago)
- Last Synced: 2025-04-09T18:15:50.599Z (9 months ago)
- Language: Java
- Size: 1.78 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ChordBox
## Work in progress..
```bash
+-------------------------+
| Item |
+-------------------------+
| - name: String |
| - price: double |
+-------------------------+
| + getName(): String |
| + getPrice(): double |
+-------------------------+
^
|
+--------+----------+-------------------+
| | | |
+------------------+ | +-----------------+ +-----------------+
| CD | | | Disk | | Instrument |
+------------------+ | +-----------------+ +-----------------+
| + sell(): void | | | + sell(): void | | + sell(): void |
+------------------+ | +-----------------+ +-----------------+
|
+-------------------------+
| Poster |
+-------------------------+
| + sell(): void |
+-------------------------+
+----------------------------------+ +------------------------------------+
| Sellable | | Discountable |
+----------------------------------+ +------------------------------------+
| | | |
| + 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(array: T[]): void |
| + getLine(): String | +------------------------------------+
| + getNumbers(N: int): Integer[] |
+----------------------------------+
+-------------------------+
| MusicStoreSystem |
+-------------------------+
| |
+-------------------------+
| + main(args: String[]) |
+-------------------------+
```