Using Python Markup Item Difference Selling Price Purchase Price Two Marketing Terms Perce Q37070541

Using Python-

The markup of an item is thedifference between its selling price and its purchase price. Twoother marketing terms are

percentagemarkup=  and    profit margin=

where the quotients are expressed aspercentages. Write a program that computes the markup, percentagemarkup, and profit margin of an item. Note:  The outputformat of your program should be exactly the same as given below(marked in yellow), and the numbers should have the same format asgiven (marked in blue).

One possible outcome:

Enter purchase price: 215

Enter selling price:645

Markup:$430.0

Percentage markup:200.0%

Profit margin:66.67%


Solution


purchase_price=float(input(“Enter purchase price: “))
selling_price=float(input(“Enter selling price: “))
markup=selling_price-purchase_price
per_markup=100*markup/(markup-purchase_price)
profit_margin=(selling_price-purchase_price)*100/selling_price
print(“Markup:$ “,markup)
print(“Percentage Markup:$ “,per_markup,”%”)
print(“Profite margin:

OR
OR

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.