Re: [PHP] help me to solve this math maze

2007-04-04 Thread tedd
At 12:44 PM +0300 4/4/07, Faisal Murad wrote: i am making a program to give money to a group of people lets say that i have to distribute 3000 among 12 people 6 of them are adult and will get 100% 6 them are children those will get 75% from the overall amount. a common solution might appear as

Re: [PHP] help me to solve this math maze

2007-04-04 Thread Jochem Maas
Satyam wrote: > You'll give 100 'units' to 6 of them, and 75 to 6, thus: > > 6 * 100 + 6 * 75 ==> 1050 units > > Each 'unit' is valued at: > > 3000 / 1050 ==> 2.8571 > > Thus, you give: > > 6 * 285.71 + 6 * 214.28 ==> 2999.94, and you may keep the change ;-) pity you don't work as bank dire

Re: [PHP] help me to solve this math maze

2007-04-04 Thread Satyam
You'll give 100 'units' to 6 of them, and 75 to 6, thus: 6 * 100 + 6 * 75 ==> 1050 units Each 'unit' is valued at: 3000 / 1050 ==> 2.8571 Thus, you give: 6 * 285.71 + 6 * 214.28 ==> 2999.94, and you may keep the change ;-) Satyam - Original Message - From: "Faisal Murad" <[EMAI

Re: [PHP] help me to solve this math maze

2007-04-04 Thread Zoltán Németh
2007. 04. 4, szerda keltezéssel 12.44-kor Faisal Murad ezt írta: > i am making a program to give money to a group of people > lets say that i have to distribute 3000 among 12 > people 6 of them are adult and will get 100% > 6 them are children those will get 75% from the overall amount. > > a