Hi i am new to java and i need help to write program for this problem
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.
Information entered by the user (store clerk) includes:
• • The product’s original price
• • The percentage discount for the product
• • The sales tax rate (varies according to county and state) 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 rate
• • 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)
PRODUCT INFORMATION
Please enter the name of the product: Table
Please enter the original price: 55.00
Please enter the percentage discount (such as 15 for 15%): 10 Please enter the sales tax rate (such as 7.25 for 7.25%): 6.5
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.
Information entered by the user (store clerk) includes:
• • The product name
• • The product’s original price
• • The percentage discount for the product
• • The sales tax rate (varies according to county and state) 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 rate
• • 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)
PRODUCT INFORMATION
Please enter the name of the product: Table
Please enter the original price: 55.00
Please enter the percentage discount (such as 15 for 15%): 10 Please enter the sales tax rate (such as 7.25 for 7.25%): 6.5
CUSTOMER RECEIPT
Product name: Table
Original price: $55.0
Percentage discount: 10%
Selling price: $49.5
Sales tax: $3.2175
Final product price: $52.7175
Product name: Table
Original price: $55.0
Percentage discount: 10%
Selling price: $49.5
Sales tax: $3.2175
Final product price: $52.7175