Question: # Process the second order carpet _ price _ per _ sqft 2 , room _ width 2 , room _ length 2 = map
# Process the second order
carpetpricepersqft roomwidth roomlength mapfloat inputsplit
roomareasqft roomwidth roomlength
carpetcost roomareasqft carpetpricepersqft
laborcost roomareasqft
totalcost carpetcost laborcost
salestax totalcost
totalcostwithtax totalcost salestax
# Output information for the second order
print
Order #
printfRoom: roomareasqft sq ft
printfCarpet: $carpetcost:f
printfLabor: $laborcost:f
printfTax: $salestax:f
printfCost: $totalcostwithtax:f
# Calculate and output total sales for both orders
totalsales totalcostwithtax totalcostwithtax
printf
Total Sales: $totalsales:f
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
