Velocity Reviews > array problem

# array problem

Banni
Guest
Posts: n/a

 06-11-2008
i want to know about some important question for 'o'level

Walter Roberson
Guest
Posts: n/a

 06-11-2008
In article <(E-Mail Removed)>,
Banni <(E-Mail Removed)> wrote:
>i want to know about some important question for 'o'level

If a hen and a half can lay an egg and a half in a day and a half,
how many eggs can nine hens lay in nine days? Model this problem
using arrays. Extend the model so that the rates and target hens and
target days can be input at run time.
--
"Every intellectual product must be judged from the point of view
of the age and the people in which it was produced."
-- Walter Horatio Pater

mark_bluemel@pobox.com
Guest
Posts: n/a

 06-11-2008
On 11 Jun, 08:39, (E-Mail Removed)-cnrc.gc.ca (Walter Roberson) wrote:
> In article <(E-Mail Removed)>,
>
> Banni <(E-Mail Removed)> wrote:
> >i want to know about some important question for 'o'level

>
> If a hen and a half can lay an egg and a half in a day and a half,

how long will it take a fly in gumboots to wade across a barrel of
treacle?

(Well that's how my father always phrased the question...)

santosh
Guest
Posts: n/a

 06-11-2008
Banni wrote:

> i want to know about some important question for 'o'level

<http://c-faq.com/aryptr/index.html>

Keith Thompson
Guest
Posts: n/a

 06-11-2008
Richard Heathfield <(E-Mail Removed)> writes:
> http://www.velocityreviews.com/forums/(E-Mail Removed) said:
>> On 11 Jun, 08:39, (E-Mail Removed)-cnrc.gc.ca (Walter Roberson) wrote:
>>> In article
>>> <(E-Mail Removed)>,
>>>
>>> Banni <(E-Mail Removed)> wrote:
>>> >i want to know about some important question for 'o'level
>>>
>>> If a hen and a half can lay an egg and a half in a day and a half,

>>
>> how long will it take a fly in gumboots to wade across a barrel of
>> treacle?

>
> A fly can only be in one gumboot or the other, and can't wade across
> a barrel of treacle, either because it isn't strong enough to lift
> the boot or because the treacle has flooded in and ensnared the fly.

The gumboots are very small, and the fly is wearing 6 of them.

--
Keith Thompson (The_Other_Keith) (E-Mail Removed) <http://www.ghoti.net/~kst>
Nokia
"We must do something. This is something. Therefore, we must do this."
-- Antony Jay and Jonathan Lynn, "Yes Minister"

Walter Roberson
Guest
Posts: n/a

 06-11-2008
In article <(E-Mail Removed)>,
Keith Thompson <(E-Mail Removed)> wrote:

>The gumboots are very small, and the fly is wearing 6 of them.

What if it is a hithoraxoid ?? Validate your input!!
--
"There are some ideas so wrong that only a very intelligent person
could believe in them." -- George Orwell

Keith Thompson
Guest
Posts: n/a

 06-11-2008
http://www.velocityreviews.com/forums/(E-Mail Removed)-cnrc.gc.ca (Walter Roberson) writes:
> In article <(E-Mail Removed)>,
> Keith Thompson <(E-Mail Removed)> wrote:
>
>>The gumboots are very small, and the fly is wearing 6 of them.

>
> What if it is a hithoraxoid ?? Validate your input!!

Surely a hithoraxoid can still wear 6 gumboots.

(I googled the word. There was only one hit.)

--
Keith Thompson (The_Other_Keith) (E-Mail Removed) <http://www.ghoti.net/~kst>
Nokia
"We must do something. This is something. Therefore, we must do this."
-- Antony Jay and Jonathan Lynn, "Yes Minister"