A C# programming exercise I'm struggling with?

SealedWithAKiss

New member
A painter has decided that he wants a program to calculate how much paint he needs to cover a wall. The length and height are specified in metres and the painter knows that 1 can of paint covers 100 square metres. Create a program to calculate how many cans of paint will be needed to cover a wall of the length and height specified by the user. The program should ask how many openings are in the wall (for windows, doors, etc). For each opening, the program should ask for the height and width of the opening and subtract that area from the amount of wall that the paint needs to cover (you can assume that the openings are rectangular). The program should display the number of cans of paint needed as a whole number (i.e. no decimal numbers).

I'm struggling with the exercise above, I'm writing a ridiculous amount of code and still not coming up with a solution. Can anybody help?
 
Back
Top