Unformatted text preview: % Each side has 2 windows that are 2 ft by 3 ft that will not be painted. % Store the amount of surface area to be covered in "paint_area". Use % this value to calculate how much paint will be needed to give the house % one coat of paint. Each gallon of paint will cover 350 sq. ft. % width_ft=30; length_ft=50; height_ft=10; area_windows=2.*(2.*3); %ft^2, this is per side of the house paint_area=2*(height_ft.*length_ft-area_windows)+2.*(height_ft.*width_ft-area_windows) %ft^2 area_per_gallon=350; %sq. ft/gallon paint_gallons=paint_area./area_per_gallon %gallons...
View Full Document
This note was uploaded on 10/21/2010 for the course CS 1371 taught by Professor Stallworth during the Spring '08 term at Georgia Tech.
- Spring '08