Hi all, I'm currently trying to complete a school assignment, but I'm stumped on what the easiest way would be to approach this.
Problem:
Bob is an interior decorator.
He works with rolls of curtains that measure 5m wide & 3m long (each.)
Bob needs a calculator that will tell him how much excess curtain he will be left with on his last roll of curtain - if he was to cover, say 50m by 20m.
-
Examining the facts:
We both know that Bob will use 10 rolls of curtains in order to achieve this.
And that he will be left with 10m's of excess curtain on the length.
-
But how does one put this into code and be able to devise a formula that will calculate the left over curtain excess?
(Feel free to change the content of my described problem, as long as it gets the result of calculating the excess I'll be a-okay.)
All help is appreciated
Thanks in advance!
Problem:
Bob is an interior decorator.
He works with rolls of curtains that measure 5m wide & 3m long (each.)
Bob needs a calculator that will tell him how much excess curtain he will be left with on his last roll of curtain - if he was to cover, say 50m by 20m.
-
Examining the facts:
We both know that Bob will use 10 rolls of curtains in order to achieve this.
And that he will be left with 10m's of excess curtain on the length.
-
But how does one put this into code and be able to devise a formula that will calculate the left over curtain excess?
(Feel free to change the content of my described problem, as long as it gets the result of calculating the excess I'll be a-okay.)
All help is appreciated
Thanks in advance!