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: | 304 Weeks Ago, 4 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