Question: Write a program that asks the user to enter an items wholesale cost and its markup percentage. It should then display the items retail price.

Write a program that asks the user to enter an items wholesale cost and its markup percentage. It should then display the items retail price.

For example:

If an items wholesale cost is 5.00 and its markup percentage is 100%, then the items retail price is 10.00.

If an items wholesale cost is 5.00 and its markup percentage is 50%, then the items retail price is 7.50.

The program should have a function named calculateRetail that receives the

wholesale cost and the markup percentage as arguments and returns the retail price of the item.

Hints:

User will be prompted for the wholesale price and markup percentage

The program should have one function names calculateRetail() which received the wholesale cost and markup percentage as arguments and returns the retail price of the item.

Your function will take 2 double arguments, one for wholeSale and one for markUp.

Your function should return a Double value

Use setprecision and showpoint to format your output

Make your program continue until the user decides to exit by entering a sentinel value ('y', 'e', 0...etc).

Sample Output:

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!