paintHouse - %paint_area =

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
function gallons_of_paint_needed=paintHouse(width,length,height,number_of_windows,window_len gth,window_height) %function to compute the surface area of a house to be covered with paint %usage: [gallons_of_paint_needed]=paintHouse(width,length,height,number_of_windows,window_l ength,window_height)
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: %paint_area = %2.*(height.*length)+2.*(height.*width)-number_of_windows.*(window_height.*window_len %gth) paint_area=2.*(height.*length)+2.*(height.*width)-number_of_windows.*(window_height.*window_length); gallons_of_paint_needed=paint_area/350;...
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.

Ask a homework question - tutors are online