Connecting Tech Pros Worldwide Help | Site Map

array problem

Banni
Guest
 
Posts: n/a
#1: Jun 27 '08
i want to know about some important question for 'o'level
Walter Roberson
Guest
 
Posts: n/a
#2: Jun 27 '08

re: array problem


In article <db7b2d6b-241e-4be8-931a-3098f7d6c07a@l28g2000prd.googlegroups.com>,
Banni <sbanni.singh29@gmail.comwrote:
Quote:
>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
#3: Jun 27 '08

re: array problem


On 11 Jun, 08:39, rober...@ibd.nrc-cnrc.gc.ca (Walter Roberson) wrote:
Quote:
In article <db7b2d6b-241e-4be8-931a-3098f7d6c...@l28g2000prd.googlegroups.com>,
>
Banni <sbanni.sing...@gmail.comwrote:
Quote:
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...)
Richard Heathfield
Guest
 
Posts: n/a
#4: Jun 27 '08

re: array problem


Walter Roberson said:
Quote:
In article
<db7b2d6b-241e-4be8-931a-3098f7d6c07a@l28g2000prd.googlegroups.com>,
Banni <sbanni.singh29@gmail.comwrote:
Quote:
>>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?
Svsglsbhe, obviously.
Quote:
Model this problem
using arrays. Extend the model so that the rates and target hens and
target days can be input at run time.
I don't see what arrays bring to the table, actually. I'm tempted to
demonstrate how easily the problem can be solved without them, but I'd be
giving too much away to the OP.

--
Richard Heathfield <http://www.cpax.org.uk>
Email: -http://www. +rjh@
Google users: <http://www.cpax.org.uk/prg/writings/googly.php>
"Usenet is a strange place" - dmr 29 July 1999
Richard Heathfield
Guest
 
Posts: n/a
#5: Jun 27 '08

re: array problem


mark_bluemel@pobox.com said:
Quote:
On 11 Jun, 08:39, rober...@ibd.nrc-cnrc.gc.ca (Walter Roberson) wrote:
Quote:
>In article
><db7b2d6b-241e-4be8-931a-3098f7d6c...@l28g2000prd.googlegroups.com>,
>>
>Banni <sbanni.sing...@gmail.comwrote:
Quote:
>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.
Quote:
(Well that's how my father always phrased the question...)
It's a different question. Walter's question can be considered meaningful. :-)

--
Richard Heathfield <http://www.cpax.org.uk>
Email: -http://www. +rjh@
Google users: <http://www.cpax.org.uk/prg/writings/googly.php>
"Usenet is a strange place" - dmr 29 July 1999
santosh
Guest
 
Posts: n/a
#6: Jun 27 '08

re: array problem


Banni wrote:
Quote:
i want to know about some important question for 'o'level
<http://c-faq.com/aryptr/index.html>

Keith Thompson
Guest
 
Posts: n/a
#7: Jun 27 '08

re: array problem


Richard Heathfield <rjh@see.sig.invalidwrites:
Quote:
mark_bluemel@pobox.com said:
Quote:
>On 11 Jun, 08:39, rober...@ibd.nrc-cnrc.gc.ca (Walter Roberson) wrote:
Quote:
>>In article
>><db7b2d6b-241e-4be8-931a-3098f7d6c...@l28g2000prd.googlegroups.com>,
>>>
>>Banni <sbanni.sing...@gmail.comwrote:
>>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) kst-u@mib.org <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
#8: Jun 27 '08

re: array problem


In article <lnmylskl9s.fsf@nuthaus.mib.org>,
Keith Thompson <kst-u@mib.orgwrote:
Quote:
>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
#9: Jun 27 '08

re: array problem


roberson@ibd.nrc-cnrc.gc.ca (Walter Roberson) writes:
Quote:
In article <lnmylskl9s.fsf@nuthaus.mib.org>,
Keith Thompson <kst-u@mib.orgwrote:
>
Quote:
>>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) kst-u@mib.org <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"
Closed Thread