in reply to [OT][HOMEWORK] Algorithms Help

Given the hieght, width and length of a room, and the length & width of a roll, determine how many rolls of wallpaper are required to paper the room.


Examine what is said, not who speaks.
"Efficiency is intelligent laziness." -David Dunham
"Think for yourself!" - Abigail

Replies are listed 'Best First'.
Re: [OT][HOMEWORK] Algorithms Help
by Abigail-II (Bishop) on May 28, 2004 at 12:07 UTC
    That's easy. You always need one more roll than you bought. And you only find out after the shop closes. And if you do find it out before the shop closes, they are out of the pattern you picked.

    Abigail

      Hey! That's brilliant. So, regardless of the size of the room, all I have to do is buy two rolls in the knowledge that if I had bought one, I would have needed one more but it wouldn't have been available to me!

      Saves time and expense:)


      Examine what is said, not who speaks.
      "Efficiency is intelligent laziness." -David Dunham
      "Think for yourself!" - Abigail