Write the pseudo code for the following: Write a program that asks the user to e
ID: 3765966 • Letter: W
Question
Write the pseudo code for the following:
Write a program that asks the user to enter an item's wholesale cost and its markup percentage. It should then display the item's retail price. For example:
If an item's wholesale cost is $5.00 and its markup percentage is 100%, then the item's retail prices is $10.00.
If an item's wholesale cost is $5.00 and its markup percentage is 50%, then the item's 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.
PLEASE I JUST WANT THE "pseudo code"
Explanation / Answer
1. CalculateRetail(wholesaleCost, markUpPercent)
2. return wholesaleCost + wholesaleCost * markUpPercent / 100
3. Display "Enter the wholesale Cost: "
4. Read wholesaleCost.
5. Display "Enter markup percent: "
6. Read markupPercent.
7. Display CalculateRetail(wholesaleCost, markUpPercent).
If you have any further queries, just get back to me.
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.