Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

I need help solving this. Understanding Arithmetic and Assignment Summary In thi

ID: 3744688 • Letter: I

Question

I need help solving this. Understanding Arithmetic and Assignment Summary In this lab, you complete a partially written Python program that is provided along with the data files for this book. The program, which was written for a furniture company, prints the name of the furniture item, its retail price, its wholesale price, the profit made on the piece of furniture, a sale price, and the profit made when the sale price is used. Instructions The file named Furniture.py should be displayed. The file includes output statements. Read them carefully before you proceed to the next step. Design the logic that will use assignment statements to: Calculate the profit (profit) as the retail price minus the wholesale price Calculate the sale price (salePrice) as 25 percent deducted from the retail price Calculate the profit when the sale price is used (saleProfit) as the sale price minus the wholesale price 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

Explanation / Answer

name = input('Enter item name: ') retail_price = float(input('Enter Retail Price: ')) wholesale_price = float(input('Enter Wholesale Price: ')) profit = retail_price - wholesale_price sale_price = retail_price*0.75 sale_profit = sale_price - wholesale_price print("Item Name: " + name) print('Retail Price: $' + str(retail_price)) print('Wholesale Price: $' + str(wholesale_price)) print('Profit: $' + str(profit)) print('Sale Price: $' + str(sale_price)) print('Sale Profit: $' + str(sale_profit))

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote