An open API service indexing awesome lists of open source software.

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.

Awesome Lists containing this project

README

          

# ChordBox

## Work in progress..


Project logo

```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[]) |
+-------------------------+
```