Question: Java Programming: 4. Create a class (Warehouse) with a product (prod1). Display the price information for prod1 when initial value is 100$ and then is
Java Programming:
4. Create a class (Warehouse) with a product (prod1). Display the price information for prod1 when initial value is 100$ and then is changed to 90$ and the change of percent. Create a class warehouse: with products(prod, previousValue, newValue). The change of value with method. getChangepercent(), getPreviousClosingPrice(), getCurrentPrice(), setCurrentPrice(), setPreviousClosingPrice()
results should look like this:
previous closing price: 100.0
current price: 90.0
price change: -10%
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
