Arithmetic and Assignment Operators in Python
> Calculate the sale price (salePrice) as 25 percent deducted from the retail price
> discountRate = (retailPrice*25/100) > salePrice = (retailPrice-discountRate)
> Calculate the profit (profit) as the retail price minus the wholesale price
> print("Profit: $" + str(retailPrice - wholesalePrice))
> Calculate the profit when the sale price is used (saleProfit) as the sale price minus the wholesale price
> print("Sale Profit: $" + str(salePrice - wholesalePrice))
The file named Furniture.py should be displayed.
fileName = "Furniture.py"
Execute the program. Your output should be as follows:
Item Name: TV Stand Retail Price: $325.0 Wholesale Price: $200.0 Profit: $125.0 Sale Price: $243.75 Sale Profit: $43.75
