Chapter 5. PC #2. Retail Price Calculator (page 312)
Write a Java program that asks the user to enter an item’swholesale cost and its markup percentage. It should then displaythe item’s retail price. For example:
• If an item’s wholesale cost is 5.00 and its markup percentageis 100 percent, then the item’s retail price is 10.00.
• If an item’s wholesale cost is 5.00 and its markup percentageis 50 percent, then the item’s retail price is 7.50.
The program should have a method named calculateRetail thatreceives the wholesale cost and the markup percentage as arguments,and returns the retail price of the item.
Class name: RetailPriceCalculator
Standard
PayPal Gateway not configured
PayPal Gateway not configured