Write a program that asks the user to enter an item’s wholesale cost and its markup...

50.1K

Verified Solution

Question

Programming

Write a program that asks the user to enter an item’s wholesalecost and its markup percentage. It should then display the item’sretail 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.

In Java please and thank you.

Answer & Explanation Solved by verified expert
3.8 Ratings (543 Votes)
Java codeimport javautilScannerpublic class Mainfunction which calculate retail pricestatic double    See Answer
Get Answers to Unlimited Questions

Join us to gain access to millions of questions and expert answers. Enjoy exclusive benefits tailored just for you!

Membership Benefits:
  • Unlimited Question Access with detailed Answers
  • Zin AI - 3 Million Words
  • 10 Dall-E 3 Images
  • 20 Plot Generations
  • Conversation with Dialogue Memory
  • No Ads, Ever!
  • Access to Our Best AI Platform: Flex AI - Your personal assistant for all your inquiries!
Become a Member

Other questions asked by students