This is a practice homework using java.
Updating inventory
A national chain is making room for new inventory, so it is selling existing inventory at discounted prices. All products in the store are on sale, but the markdown percentage varies depending upon the product sold. Write a program that accepts information from the user (store clerk), calculates the new markdown price and final selling price, and displays a receipt of this information for the customer. Assume the sales tax rate is 6.5%.
Information entered by the user (store clerk) includes:
- The product name
- The product's original price
- The percentage discount for the product
The program then outputs the following information:
- The product name
- The product's original price
- The percentage discount
- The store's selling price of the product
- The sales tax
- The final price of the product (selling price plus sales tax)
This is an example of what your program should look like when it runs: (Bold items are entered by the user; these values may change each time the program runs depending what the user enters)
REQUIRED INFORMATION
Please enter the product name: Lamp
Please enter the original price of the product: 75
Please enter the percentage discount (such as 15 for 15%): 25
PRODUCT RECEIPT FOR CUSTOMER
Product name: Lamp
Original price: $75.00
Percentage discount: 25%
Selling price: $56.25
Sales tax: $3.65625
Final product price: $59.90625