TILING QUESTION

closed account (9jhk92yv)
Hello guys!

I need a help with a question here. Could you please post the complete code? It will be much appreciable.

The program must calculate how much tiles are needed to tile a floor. The tiles are 8 inches x 8 inches. Tiles can be used as a whole or a part can be used. Only one usable piece can be cut from a tile. That is, if a usable piece is cut from a tile then the rest of the tile must be throw away. The program must accept the length and width of the room and return how many whole tiles are used and how many part tiles are used. The length is given in inches.

input format: Consists 2 integers. 1st integer corresponds to length and 2nd to the width.

output format: Consists 2 integers. 1st integer corresponds to number of whole tiles used and 2nd to the number of part tiles used.

sample input: 160 240
sample output: 600 0

sample input: 100 120
sample output: 180 15

PLEASE HELP ASAP! THANK YOU
Please note, that this is not a homework site. We won't do your homework for you. The purpose of homework is that you learn by doing. However we are always willing to help solve problems you encountered, correct mistakes you made in your code and answer your questions.

We didn't see your attempts to solve this problem youself and so we cannot correct mistakes you didn't made and answer questions you didn't ask. To get help you should do something yourself and get real problems with something. If your problem is "I don't understand a thing", then you should go back to basics and study again. As it is impossible to find deriviative of function without knowledge in ariphmetics, you cannot do more complex tasks in programming without clear understanding of basics.
Topic archived. No new replies allowed.