Click here to Skip to main content
15,909,896 members
Please Sign up or sign in to vote.
1.00/5 (5 votes)
See more:
A program to estimate the cost of materials and labor for a project and then figure makup to determine profit

A program to determine the number of cans of paint necessary to paint a room when given the walls, doors and windows dimensions, and the coverage from one can of paint in a aquere feet.
Posted
Updated 6-Sep-11 11:24am
v3
Comments
Simon Bang Terkildsen 6-Sep-11 17:23pm    
Do not write your question, if you can call it that, in uppercase.
You need to do some work yourself or pay someone to do your work, this is not the place you can post requirements and get a bunch of code.
Wendelius 6-Sep-11 17:24pm    
Since this is obviously a homework, what have you done so far?

1 solution

We are not here to do YOUR homework for you. We are here to help with specific problems you encounter when YOU do YOUR homework and run into some specific trouble that, after doing some googling, you just can't seem to fix.

But if you really want some pseudo code...
Here is some for the cans of paint in VB (because you were to lazy to even specifiy a language!)
VB
Public Class Room

   ' The Wall Class contains info on doors, windows and
   ' square feet of the wall.
   Public Property Walls As IEnumerable(Of Wall)
   
   Public Function GetNumberOfPaintCans As Integer
      ' Do your calculations here using the Walls Property.
   End Function

   ' Duh -.-
End Class
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900