Arithmetic and Assignment Operators in Python

अब Quizwiz के साथ अपने होमवर्क और परीक्षाओं को एस करें!

> 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


संबंधित स्टडी सेट्स

WHAT DEFINES CARDIOVASCULAR EXERCISE?

View Set

Review Skill 1 Training or testing Mode

View Set

Practice Test K Linear Measurement

View Set

Chapter 29 - The United States Government

View Set

Chapter 2: Fundamentals of Process Control

View Set

Chapter 8 The international monetary system and financial forces

View Set