Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

# 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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Concepts of Database Management

Authors: Philip J. Pratt, Mary Z. Last

8th edition

1285427106, 978-1285427102

More Books

Students also viewed these Databases questions