1. ## Overthinking Math...

Yeah so it's been a long day and I'm trying to think of an equation to solve this situation but I'm tired, it's extra credit, and I really can't concentrate.

Here's the diagram http://i52.tinypic.com/144bnva.jpg

My goal is, given a user input of length and width of the room, radius of the tables, space between each table / wall, and number of people per table, how many people does the arrangement fit.

When there is no offset row of tables as in the tables look like
OOOO
OOOO

the equation to find the amount of people is
Code:
```
printf("This arrangement seats %d people.\n", tables_across*tables_wide*people_table);```
I need to find an equation that does the same thing, but with the offset row incorporated. Sorry if this doesn't make sense.

2. You wouldn't by any chance be this guy: http://cboard.cprogramming.com/c-pro...d-program.html ... or just in the same class?

Quzah.

3. Of course it's not that guy... this one's tables are round...

4. Originally Posted by CommonTater
Of course it's not that guy... this one's tables are round...
*cough* problem2 *cough*

Quzah.

5. LOL. I didn't even see that post. Also I didn't know there was a homework policy, guess it helps to read before I post. Oh well, thanks anyways.

6. Hey, I never figured out the equation to the Extra Credit and it was due on tuesday, so I was wondering if NOW, since I can't turn it in even if I had it, you could help me with the equation.

7. Well... post up some code... what have you tried?

8. Nvm I figured it out. It was due to typos .