Microsoft Interview Question
Software Engineer in Tests@hash.joshi: I think you made a mistake when calculating the number of people who get married every year. (60,000,000/100)*(30-20) = 6000000 is just the number of people whose ages are between 20 and 30. This does not mean they will get married in the same year. In your calculation, a person who is 20 years old will get married for 10 times... If you assume ages are uniformly distributed between [0,100], and every one gets married once in their life, the number of people getting married every year is just 60,000,000/100.
What about the girls that ran away from before the wedding!
It happens sometimes lol!!
I will say:
The number wedding dresses were sold in italy last year = to the numbers of weddings happened + number of girls that regret at the end.
Well. at least I tried!
any idea?
Let's say the population of Italy is around 60,000,000, out of which around out of which I would assume that the age groups are uniformly distributed. That makes around (60,000,000/100)*(30-20) = 6000000 people getting married every year (age groups between 30 - 20). Half of them would be women, that makes around 3000000 women. Each women on an average needs one dress. So that makes it 3000000 dresses an year. I would assume that no girl would inherit dresses from their moms coz they are of out fashion. :)
- hash.joshi December 01, 2009