Question: How do I answer the Arithmetic and Assignment Operators in Python in LAB 4 4: Arithmetic and Assignment Operators in Python Tasks Furniture.py 1 #

4: Arithmetic and Assignment Operators in Python Tasks Furniture.py 1 # Furniture.py - This program calculates profits and sales prices for a furniture company. Results Item Name: TV Stand 2 Retail Price: $325.0 Wholesale Price: $200.0 3 itemName = "TV Stand" 4 retailPrice = 325.00 5 wholesalePrice = 200.00 Profit: $125.0 Sale Price: $243.75 Sale Profit: $43.75 6 7 # Write your assignment statements here for profit, salePrice, and saleProfit Expected Output 8 Item Name: TV Stand Retail Price: $325.e Wholesale Price: $200.6 Proflt: $125.0 Sale Price: $243.75 9 print("Item Name:" + TV Stand) 10 print("Retail Price: $" + str($325.00)) 11 print("Wholesale Price: $" + str($280.00)) 12 print("Profit: $" + str($125.ee)) 13 print("Sale Price: $" +Istr($243.75)) 14 print("Sale Profit: $" + str($43.75)) 15 P Sale Proflt: $43.75 Run Checks Submit 0% Payroll.py ili 1 salary = 1250.00 2 numDependents = 2 w | 4 # Calculate stateTax here. 5 6 print("State Tax: $" + str(stateTax)) 7 1 8 # Calculate federalTax here. 9 10 print("Federal Tax: $" + str(federalTax)) 11 12 # Calculate dependantDeduction here. 13 14 print("Dependents: $" + str(dependentDeduction)) 15 16 # Calculate totalWithholding here. 17 ed 18 # Calculate takeHomePay here 19 20 print("Salary: $" + str(salary)) 21 print("Take Home Pay: $" + str(takeHomePay)) 22
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
