Question: # Process the second order carpet _ price _ per _ sqft 2 , room _ width 2 , room _ length 2 = map

# Process the second order
carpet_price_per_sqft2, room_width2, room_length2= map(float, input().split())
room_area_sqft2= room_width2* room_length2
carpet_cost2= room_area_sqft2* carpet_price_per_sqft2*1.20
labor_cost2= room_area_sqft2*0.75
total_cost2= carpet_cost2+ labor_cost2
sales_tax2= total_cost2*0.07
total_cost_with_tax2= total_cost2+ sales_tax2
# Output information for the second order
print("
Order #2")
print(f'Room: {room_area_sqft2} sq ft')
print(f'Carpet: ${carpet_cost2:.2f}')
print(f'Labor: ${labor_cost2:.2f}')
print(f'Tax: ${sales_tax2:.2f}')
print(f'Cost: ${total_cost_with_tax2:.2f}')
# Calculate and output total sales for both orders
total_sales = total_cost_with_tax1+ total_cost_with_tax2
print(f'
Total Sales: ${total_sales:.2f}')

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!