The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | Jul 2017 |
| Last Sign in: | 337 Weeks Ago, 2 Days Ago |
| Questions Answered: | 15833 |
| Tutorials Posted: | 15827 |
MBA,PHD, Juris Doctor
Strayer,Devery,Harvard University
Mar-1995 - Mar-2002
Manager Planning
WalMart
Mar-2001 - Feb-2009
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
----------- ----------- H-----------ell-----------o S-----------ir/-----------Mad-----------am ----------- Th-----------ank----------- yo-----------u f-----------or -----------you-----------r i-----------nte-----------res-----------t a-----------nd -----------buy-----------ing----------- my----------- po-----------ste-----------d s-----------olu-----------tio-----------n. -----------Ple-----------ase----------- pi-----------ng -----------me -----------on -----------cha-----------t I----------- am----------- on-----------lin-----------e o-----------r i-----------nbo-----------x m-----------e a----------- me-----------ssa-----------ge -----------I w-----------ill----------- be----------- qu-----------ick-----------ly