Re: Need help with programme
Welcome to Forums, UultamatI! :wave:
Is that a school assignment?
Re: Need help with programme
We can help. What have you done so far?
Re: Need help with programme
Quote:
Originally Posted by
UultamatI
Example:
For example, a room is 11 metres wide and 15 metres long.
Each roll of carpet is 30 meters long by 5 metres wide when it is unrolled.
Any excess width is discarded. This room will therefore need 3 strips of carpet. Each strip will be 15 metres long. The first two strips will be the full 5 metres wide, but the final strip will have to be cut so that it is only 1 metre wide.
Interesting exercise, is it an assignment related to Optimisation or just calculation?
If it's a plain Carpet, it would be more efficient (in terms of waste), to have 3 strips of 11 X 5 metres, you wouldn't end up with 15 metres of 4 metres width left on the roll. He'd use 33 metres with no waste as opposed to 45 metres with 15 X 4 metres 'wasted' on the roll. Of course,in terms of Bob's income he'd sell 45 metres in the latter case as opposed to 33 in the former.
Re: Need help with programme
hey. yeah its a school assignment. im from new zealand. i missed quite alot of class due to other commitments and now im just plain stuck haha.
Re: Need help with programme
Best thing to do is to work out the logic with pen and paper first - if you can't do it manually then you're going to struggle trying to write code to do it.
I can only suggest you have a go and then post your code if/when you run into problms.
Obviously, as this is an assignment, we can't write it for you, but we can point you in the right direction when required.
Re: Need help with programme
Just to get you started you will need few textboxes (at least 2 for input and 2 for output), a command button, perhaps a listbox or combo with list of available carper sizes, prices, etc.
You would use textboxes to input room size; you will need to do simle math to caculate area; ,don't forget to round calculated carpet length to the next whole number.
Good luck.