Question: import math # Step 1 : Read inputs wall _ height = float ( input ( ) ) wall _ width = float ( input
import math
# Step : Read inputs
wallheight floatinput
wallwidth floatinput
costofonepaintcan floatinput
# Step : Calculate wall area
wallarea wallheight wallwidth
printfWall area: wallarea:f sq ft
# Step : Calculate paint needed gallon covers sq ft
paintneeded wallarea
printfPaint needed: paintneeded:f gallons"
# Step : Calculate the number of cans needed
cansneeded math.ceilpaintneeded
printfCans needed: cansneeded cans
# Step : Calculate paint cost
paintcost cansneeded costofonepaintcan
# Step : Calculate sales tax
salestax paintcost
# Step : Calculate total cost
totalcost paintcost salestax
# Step : Output paint cost, sales tax, and total cost
printfPaint cost: $paintcost:f
printfSales tax: $salestax:f
printfTotal cost: $totalcost: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
