Initialize a simple inventory management system with the following items: 10 apples, 5 oranges, and 2 pineapples.
Here is the initialized inventory management system:
Item | Quantity |
---|---|
Apples | 10 |
Oranges | 5 |
Pineapples | 2 |
Add 7 apples and 3 oranges to the inventory.
After adding 7 apples and 3 oranges, the updated inventory is:
Item | Quantity |
---|---|
Apples | 17 |
Oranges | 8 |
Pineapples | 2 |
Remove 4 apples and 1 pineapple from the inventory.
After removing 4 apples and 1 pineapple, the updated inventory is:
Item | Quantity |
---|---|
Apples | 13 |
Oranges | 8 |
Pineapples | 1 |
Update the inventory system to track prices: apples - $1.00, oranges - $0.50, and pineapples - $3.00.
The updated inventory system now tracks prices:
Item | Quantity | Price |
---|---|---|
Apples | 13 | $1.00 |
Oranges | 8 | $0.50 |
Pineapples | 1 | $3.00 |
Calculate the total value of the current inventory.
Here is the total value of the current inventory:
Item | Quantity | Price | Value |
---|---|---|---|
Apples | 13 | $1.00 | $13.00 |
Oranges | 8 | $0.50 | $4.00 |
Pineapples | 1 | $3.00 | $3.00 |
Total value: $20.00
Add a discount of 20% to all apples in the inventory.
After applying a 20% discount to apples, the updated inventory is:
Item | Quantity | Price | Value |
---|---|---|---|
Apples | 13 | $0.80 | $10.40 |
Oranges | 8 | $0.50 | $4.00 |
Pineapples | 1 | $3.00 | $3.00 |
Total value: $17.40
Recalculate the total value of the inventory after the discount is applied.
The total value of the inventory after the 20% discount on apples is already calculated in the previous response:
Item | Quantity | Price | Value |
---|---|---|---|
Apples | 13 | $0.80 | $10.40 |
Oranges | 8 | $0.50 | $4.00 |
Pineapples | 1 | $3.00 | $3.00 |
Total value: $17.40
Display the final inventory list, including quantities and prices.
Here is the final inventory list, including quantities and prices:
Item | Quantity | Price |
---|---|---|
Apples | 13 | $0.80 |
Oranges | 8 | $0.50 |
Pineapples | 1 | $3.00 |