I am trying to write a program that will generate 100 random numbers
between 1 and 50. Using these numbers, I want to generate a list that will
tell the number of random numbers that fell between 1-5, 6-10, 11-15,
16-20, ... , and 46-50. Finally,I would like to print out the results as a
histogram. I have written it out and would think it would look like this.
1-5 (11) ***********
6-10 (8) ********
11-15 (12) ************
16-20 (9) *********
21-25 (10) **********
26-30 (11) ***********
31-35 (7) *******
36-40 (8) ********
41-45 (13) *************
46-50 (11) ***********
I am trying to learn how to do this and I am stuck. Any suggestions would
help. Even some possible tutorials to chek out would help.
--
Message posted using http://www.talkaboutprogramming.com/group/comp.lang.c/
More information at http://www.talkaboutprogramming.com/faq.html 33 1473
"joebenjamin" <gu*********@hotmail.comwrites:
I am trying to write a program that will generate 100 random numbers
between 1 and 50. Using these numbers, I want to generate a list that will
tell the number of random numbers that fell between 1-5, 6-10, 11-15,
16-20, ... , and 46-50. Finally,I would like to print out the results as a
histogram. I have written it out and would think it would look like this.
1-5 (11) ***********
6-10 (8) ********
11-15 (12) ************
16-20 (9) *********
21-25 (10) **********
26-30 (11) ***********
31-35 (7) *******
36-40 (8) ********
41-45 (13) *************
46-50 (11) ***********
I am trying to learn how to do this and I am stuck. Any suggestions would
help. Even some possible tutorials to chek out would help.
To generate random number integer from set [1, 50] you can use: "number
= rand() % 50 + 1;" (remember to initialise pseudo-random number
generator with for instance srand(time(0))).
To get bucket number you can use "bucket = (number - 1) / 5;" (so in
fact it is better to generate random integer from set [0, 49] using
"number = rand() % 50;" and then calculate bucket number using "bucket =
number / 5;").
Then you increment given bucket, ie.: "buckets[bucket]++". Buckets have
to be zeroed first of course. And when results are ready you print the
results using two nested for loops.
--
Best regards, _ _
.o. | Liege of Serenly Enlightened Majesty of o' \,=./ `o
..o | Computer Science, Michal "mina86" Nazarewicz (o o)
ooo +--<mina86*tlen.pl>---<jid:mina86*chrome.pl>--ooO--(_)--Ooo--
Michal Nazarewicz said:
"joebenjamin" <gu*********@hotmail.comwrites:
>I am trying to write a program that will generate 100 random numbers between 1 and 50. Using these numbers, I want to generate a list that will tell the number of random numbers that fell between 1-5, 6-10, 11-15, 16-20, ... , and 46-50. Finally,I would like to print out the results as a histogram. I have written it out and would think it would look like this.
1-5 (11) *********** 6-10 (8) ******** 11-15 (12) ************ 16-20 (9) ********* 21-25 (10) ********** 26-30 (11) *********** 31-35 (7) ******* 36-40 (8) ******** 41-45 (13) ************* 46-50 (11) ***********
I am trying to learn how to do this and I am stuck. Any suggestions would help. Even some possible tutorials to chek out would help.
To generate random number integer from set [1, 50] you can use:
"number = rand() % 50 + 1;"
Better: int number = 50 * (rand() / (RAND_MAX + 1.0));
(remember to initialise pseudo-random
number generator with for instance srand(time(0))).
If he wants repeatability, he'd be better off using a constant. If he
wants unpredictability (as far as is practical), the following function
(based on code written by Lawrence Kirby) does a better job of
utilising all the available entropy.
#include <stddef.h>
#include <time.h>
#include <limits.h>
/* Usage: srand (time_seed ()); */
/* Choose and return an initial random seed based on the current time.
Based on code by Lawrence Kirby <fr**@genesis.demon.co.uk>. */
unsigned
time_seed (void)
{
time_t timeval;
unsigned char *ptr;
unsigned seed;
size_t i;
timeval = time (NULL);
ptr = (unsigned char *) &timeval;
seed = 0;
for (i = 0; i < sizeof timeval; i++)
seed = seed * (UCHAR_MAX + 2U) + ptr[i];
return seed;
}
>
To get bucket number you can use "bucket = (number - 1) / 5;" (so in
fact it is better to generate random integer from set [0, 49] using
"number = rand() % 50;" and then calculate bucket number using "bucket
= number / 5;").
Then you increment given bucket, ie.: "buckets[bucket]++". Buckets
have
to be zeroed first of course. And when results are ready you print
the results using two nested for loops.
--
Richard Heathfield <http://www.cpax.org.uk>
Email: -www. +rjh@
Google users: <http://www.cpax.org.uk/prg/writings/googly.php>
"Usenet is a strange place" - dmr 29 July 1999
Try this:
#include<stdio.h>
#include<stdlib.h>
#include<time.h>
int main(void)
{
int matrix[10];
int i;
int x;
srand(time(NULL));
for(i=0;i<10;i++)
matrix[i]=0;
for(i=0;i<100;i++){
x=rand()%50 + 1;
if(x<6)
matrix[0]++;
else if(x<11)
matrix[1]++;
else if(x<16)
matrix[2]++;
else if(x<21)
matrix[3]++;
else if(x<26)
matrix[4]++;
else if(x<31)
matrix[5]++;
else if(x<36)
matrix[6]++;
else if(x<41)
matrix[7]++;
else if(x<46)
matrix[8]++;
else
matrix[9]++;
}
printf("1-5 \t\t ( %3d ) ",matrix[0]);
for(i=0;i<matrix[0];i++)
printf("*");
printf("\n");
printf("6-10 \t\t ( %3d ) ",matrix[1]);
for(i=0;i<matrix[1];i++)
printf("*");
printf("\n");
return 0;
}
tolkien wrote:
Try this:
<snip - program>
Hey man, thanks for doing my homework.
Will you do my next assignment as well, so I can get an A+?
Richard Heathfield <rj*@see.sig.invalidwrites:
Michal Nazarewicz said:
[...]
>To generate random number integer from set [1, 50] you can use: "number = rand() % 50 + 1;"
Better: int number = 50 * (rand() / (RAND_MAX + 1.0));
Better still: read question 13.16 in the comp.lang.c FAQ,
<http://www.c-faq.com/>.
--
Keith Thompson (The_Other_Keith) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <* <http://users.sdsc.edu/~kst>
"We must do something. This is something. Therefore, we must do this."
-- Antony Jay and Jonathan Lynn, "Yes Minister"
Bart van Ingen Schenau said:
tolkien wrote:
>Try this:
<snip - program>
Hey man, thanks for doing my homework.
Will you do my next assignment as well, so I can get an A+?
You'd give an A+ for that? I'd give a C, tops.
--
Richard Heathfield <http://www.cpax.org.uk>
Email: -www. +rjh@
Google users: <http://www.cpax.org.uk/prg/writings/googly.php>
"Usenet is a strange place" - dmr 29 July 1999
Richard Heathfield wrote:
Bart van Ingen Schenau said:
>tolkien wrote:
>>Try this:
<snip - program>
Hey man, thanks for doing my homework. Will you do my next assignment as well, so I can get an A+?
You'd give an A+ for that? I'd give a C, tops.
I am not that familiar with the letter-grade system.
On a scale of 1 to 10 (10 being the highest score), I would give the
program, if it was turned in as posted, at most a 5.
For starters, the program does not meet the stated requirements.
Bart v Ingen Schenau
--
a.c.l.l.c-c++ FAQ: http://www.comeaucomputing.com/learn/faq
c.l.c FAQ: http://www.eskimo.com/~scs/C-faq/top.html
c.l.c++ FAQ: http://www.parashift.com/c++-faq-lite/
Bart van Ingen Schenau <ba**@ingen.ddns.infowrites:
Richard Heathfield wrote:
[...]
>You'd give an A+ for that? I'd give a C, tops.
I am not that familiar with the letter-grade system.
On a scale of 1 to 10 (10 being the highest score), I would give the
program, if it was turned in as posted, at most a 5.
For starters, the program does not meet the stated requirements.
<OT>
The usual letter-grade system is A, B, C, D, F (E is skipped).
A is the best, F is failure. A '+' or '-' may be appended to the
letter grade; B+ is better than B, but not quite as good as A-.
F+ and F- are rarely given; failure is failure.
So your '5' is probably equivalent to Richard's 'C'.
--
Keith Thompson (The_Other_Keith) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <* <http://users.sdsc.edu/~kst>
"We must do something. This is something. Therefore, we must do this."
-- Antony Jay and Jonathan Lynn, "Yes Minister"
In article <ln************@nuthaus.mib.org>,
Keith Thompson <ks***@mib.orgwrote:
><OT>
>The usual letter-grade system is A, B, C, D, F (E is skipped). A is the best, F is failure.
>So your '5' is probably equivalent to Richard's 'C'.
Usually, A = 80%, B = 75%, C = 65%, D = 55%, '+' means
higher towards the next best range, '-' means lower towards
the lesser range. So 5 in 1-10 scale would be D-
which is as low as you can go and still pass.
--
"It is important to remember that when it comes to law, computers
never make copies, only human beings make copies. Computers are given
commands, not permission. Only people can be given permission."
-- Brad Templeton
Walter Roberson wrote:
In article <ln************@nuthaus.mib.org>,
Keith Thompson <ks***@mib.orgwrote:
<OT>
The usual letter-grade system is A, B, C, D, F (E is skipped).
A is the best, F is failure.
So your '5' is probably equivalent to Richard's 'C'.
Usually, A = 80%, B = 75%, C = 65%, D = 55%, '+' means
higher towards the next best range, '-' means lower towards
the lesser range. So 5 in 1-10 scale would be D-
which is as low as you can go and still pass.
That's not typical in the US. Normally:
A: 90%-100%
B: 80%-89%
C: 70%-79%
D: 60%-69%
F: 0%-59%
Brian
On Sep 11, 2:16 pm, "Default User" <defaultuse...@yahoo.comwrote:
Walter Roberson wrote:
In article <lnk5qx544s....@nuthaus.mib.org>,
Keith Thompson <ks...@mib.orgwrote:
<OT>
The usual letter-grade system is A, B, C, D, F (E is skipped).
A is the best, F is failure.
So your '5' is probably equivalent to Richard's 'C'.
Usually, A = 80%, B = 75%, C = 65%, D = 55%, '+' means
higher towards the next best range, '-' means lower towards
the lesser range. So 5 in 1-10 scale would be D-
which is as low as you can go and still pass.
That's not typical in the US. Normally:
A: 90%-100%
And in honors classes, 95% is often needed for an A (with the extra 5%
rippling down)
B: 80%-89%
C: 70%-79%
D: 60%-69%
F: 0%-59%
Brian
ro******@ibd.nrc-cnrc.gc.ca (Walter Roberson) wrote:
In article <ln************@nuthaus.mib.org>,
Keith Thompson <ks***@mib.orgwrote:
<OT>
The usual letter-grade system is A, B, C, D, F (E is skipped).
A is the best, F is failure.
So your '5' is probably equivalent to Richard's 'C'.
Usually, A = 80%, B = 75%, C = 65%, D = 55%, '+' means
higher towards the next best range, '-' means lower towards
the lesser range. So 5 in 1-10 scale would be D-
which is as low as you can go and still pass.
In the 1-10 scale I'm used to - and which, I can only presume since he
uses a news server which belongs to my own ISP and therefore is well
acquainted with my country, Bart grew up with as well - 5 is as high as
you can go and still fail. A 6-, or possibly a 5-and-a-half, is the
lowest pass grade.
Richard
"Keith Thompson" <ks***@mib.orga écrit dans le message de news: ln************@nuthaus.mib.org...
Bart van Ingen Schenau <ba**@ingen.ddns.infowrites:
>Richard Heathfield wrote:
[...]
>>You'd give an A+ for that? I'd give a C, tops.
I am not that familiar with the letter-grade system. On a scale of 1 to 10 (10 being the highest score), I would give the program, if it was turned in as posted, at most a 5. For starters, the program does not meet the stated requirements.
Any decent scale for grading C programming assignment should be 0 based,
don't you think ?
The usual letter-grade system is A, B, C, D, F (E is skipped).
A is the best, F is failure. A '+' or '-' may be appended to the
letter grade; B+ is better than B, but not quite as good as A-.
F+ and F- are rarely given; failure is failure.
So your '5' is probably equivalent to Richard's 'C'.
Yet another example of the culturally engraved refusal to cope with the
decimal system that plagues the USA.
Just for the fun of it, you should expand on how these grades convert to GPA
points...
--
Chqrlie.
On Wed, 12 Sep 2007 10:33:57 +0200, "Charlie Gordon"
<ne**@chqrlie.orgwrote:
>"Keith Thompson" <ks***@mib.orga écrit dans le message de news: ln************@nuthaus.mib.org...
>Bart van Ingen Schenau <ba**@ingen.ddns.infowrites:
>>Richard Heathfield wrote:
[...]
>>>You'd give an A+ for that? I'd give a C, tops.
I am not that familiar with the letter-grade system. On a scale of 1 to 10 (10 being the highest score), I would give the program, if it was turned in as posted, at most a 5. For starters, the program does not meet the stated requirements.
Any decent scale for grading C programming assignment should be 0 based, don't you think ?
>The usual letter-grade system is A, B, C, D, F (E is skipped). A is the best, F is failure. A '+' or '-' may be appended to the letter grade; B+ is better than B, but not quite as good as A-. F+ and F- are rarely given; failure is failure.
So your '5' is probably equivalent to Richard's 'C'.
Yet another example of the culturally engraved refusal to cope with the decimal system that plagues the USA.
has Richard move to the US? <g>.
>Just for the fun of it, you should expand on how these grades convert to GPA points...
--
Al Balmer
Sun City, AZ
Al Balmer said:
"Charlie Gordon" wrote:
>"Keith Thompson" a écrit...
<snip>
>>So your '5' is probably equivalent to Richard's 'C'.
Yet another example of the culturally engraved refusal to cope with the decimal system that plagues the USA.
has Richard move to the US? <g>.
Does this body look dead to you? No? Then no.
--
Richard Heathfield <http://www.cpax.org.uk>
Email: -www. +rjh@
Google users: <http://www.cpax.org.uk/prg/writings/googly.php>
"Usenet is a strange place" - dmr 29 July 1999
Charlie Gordon wrote:
"Keith Thompson" <ks***@mib.orga écrit dans le message de news: ln************@nuthaus.mib.org...
>Bart van Ingen Schenau <ba**@ingen.ddns.infowrites:
>>Richard Heathfield wrote:
[...]
>>>You'd give an A+ for that? I'd give a C, tops.
I am not that familiar with the letter-grade system. On a scale of 1 to 10 (10 being the highest score), I would give the program, if it was turned in as posted, at most a 5. For starters, the program does not meet the stated requirements.
Any decent scale for grading C programming assignment should be 0
based, don't you think ?
Well, you could think of the scale as running from 0 to 10. The first
point is awarded for turning in a paper with your name on top. :-)
>
>The usual letter-grade system is A, B, C, D, F (E is skipped). A is the best, F is failure. A '+' or '-' may be appended to the letter grade; B+ is better than B, but not quite as good as A-. F+ and F- are rarely given; failure is failure.
So your '5' is probably equivalent to Richard's 'C'.
I should have made it more clear in my previous post.
In the grading system in the Netherlands, the grades 1 (or 0) to 5
(inclusive) are all fail grades, so they would all correspond to an F.
The grades 6 to 10 are all pass grades, where 10 means a perfect score
(100%).
Bart v Ingen Schenau
--
a.c.l.l.c-c++ FAQ: http://www.comeaucomputing.com/learn/faq
c.l.c FAQ: http://www.eskimo.com/~scs/C-faq/top.html
c.l.c++ FAQ: http://www.parashift.com/c++-faq-lite/
On Wed, 12 Sep 2007 17:31:40 +0000, Richard Heathfield
<rj*@see.sig.invalidwrote:
>Al Balmer said:
>"Charlie Gordon" wrote:
>>"Keith Thompson" a écrit...
<snip>
>>>So your '5' is probably equivalent to Richard's 'C'.
Yet another example of the culturally engraved refusal to cope with the decimal system that plagues the USA.
has Richard move to the US? <g>.
Does this body look dead to you? No? Then no.
I do wish that the US would follow the UK (and most of the rest of the
world) and go metric. What's the name for the "4.0" grading system
higher ed uses here?
--
Al Balmer
Sun City, AZ
Al Balmer said:
<snip>
I do wish that the US would follow the UK (and most of the rest of the
world) and go metric.
And I wish we would go back to Imperial weights and measures. Life in
Britain is much more confusing than it needs to be. The last time I
went to the grocer, I had to ask for 0.68038856 kilograms of carrots,
2.2679619 kilograms of spuds, and 1.8927059 pints of milk.
That's the trouble with these Europeans. Give them 25.4 millimetres and
they'll take 1.1429982 metres.
--
Richard Heathfield <http://www.cpax.org.uk>
Email: -www. +rjh@
Google users: <http://www.cpax.org.uk/prg/writings/googly.php>
"Usenet is a strange place" - dmr 29 July 1999
Op Wed, 12 Sep 2007 20:22:44 +0000 schreef Richard Heathfield:
Al Balmer said:
<snip>
>I do wish that the US would follow the UK (and most of the rest of the world) and go metric.
And I wish we would go back to Imperial weights and measures. Life in
Britain is much more confusing than it needs to be. The last time I
went to the grocer, I had to ask for 0.68038856 kilograms of carrots,
2.2679619 kilograms of spuds, and 1.8927059 pints of milk.
That's the trouble with these Europeans. Give them 25.4 millimetres and
they'll take 1.1429982 metres.
<OT>
You mean three feet and nine inches? That's exactly 1143 mm. The value of
an inch has been expressed in SI units for a long time now ;-) Like the
Dutch proverb: You don't have a foot to stand on.
</OT>
--
Coos
Richard Heathfield wrote:
Al Balmer said:
<snip>
>I do wish that the US would follow the UK (and most of the rest of the world) and go metric.
And I wish we would go back to Imperial weights and measures. Life in
Britain is much more confusing than it needs to be. The last time I
went to the grocer, I had to ask for 0.68038856 kilograms of carrots,
2.2679619 kilograms of spuds, and 1.8927059 pints of milk.
That's the trouble with these Europeans. Give them 25.4 millimetres and
they'll take 1.1429982 metres.
Shouldn't that be 1,609.344 metres?
--
Ian Collins.
On Tue, 11 Sep 2007 20:58:08 +0000 (UTC), in comp.lang.c , ro******@ibd.nrc-cnrc.gc.ca (Walter Roberson) wrote:
>In article <ln************@nuthaus.mib.org>, Keith Thompson <ks***@mib.orgwrote:
>><OT>
>>The usual letter-grade system is A, B, C, D, F (E is skipped). A is the best, F is failure.
>>So your '5' is probably equivalent to Richard's 'C'.
Usually, A = 80%, B = 75%, C = 65%, D = 55%,
This is all highly implementation specific. Here in the UK they don't
miss out E (I know, I needed two of them at A level to get into
Oxford...) and the percent scores are variable.
Plus - what does it hav to do with C?
--
Mark McIntyre
"Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it."
--Brian Kernighan
Ian Collins said:
Richard Heathfield wrote:
>Al Balmer said:
<snip>
>>I do wish that the US would follow the UK (and most of the rest of the world) and go metric.
And I wish we would go back to Imperial weights and measures. Life in Britain is much more confusing than it needs to be. The last time I went to the grocer, I had to ask for 0.68038856 kilograms of carrots, 2.2679619 kilograms of spuds, and 1.8927059 pints of milk.
That's the trouble with these Europeans. Give them 25.4 millimetres and they'll take 1.1429982 metres.
Shouldn't that be 1,609.344 metres?
You refer to a modern corruption of the original adage.
I did, however, say "pints" where I intended to say "litres".
--
Richard Heathfield <http://www.cpax.org.uk>
Email: -www. +rjh@
Google users: <http://www.cpax.org.uk/prg/writings/googly.php>
"Usenet is a strange place" - dmr 29 July 1999
"Bart van Ingen Schenau" <ba**@ingen.ddns.infoa écrit dans le message de
news: 13****************@ingen.ddns.info...
Charlie Gordon wrote:
>"Keith Thompson" <ks***@mib.orga écrit dans le message de news: ln************@nuthaus.mib.org...
>>Bart van Ingen Schenau <ba**@ingen.ddns.infowrites: Richard Heathfield wrote: [...] You'd give an A+ for that? I'd give a C, tops. > I am not that familiar with the letter-grade system. On a scale of 1 to 10 (10 being the highest score), I would give the program, if it was turned in as posted, at most a 5. For starters, the program does not meet the stated requirements.
Any decent scale for grading C programming assignment should be 0 based, don't you think ?
Well, you could think of the scale as running from 0 to 10. The first
point is awarded for turning in a paper with your name on top. :-)
Yes, but some students don't even turn in anything, and others loose that
point by copying the rest of the assignment from another student or the
Internet. Zero sounds good for complete failure, even by coca cola
standards.
--
Chqrlie.
"Charlie Gordon" <ne**@chqrlie.orgwrites:
"Bart van Ingen Schenau" <ba**@ingen.ddns.infoa écrit dans le message de
news: 13****************@ingen.ddns.info...
>Charlie Gordon wrote:
>>"Keith Thompson" <ks***@mib.orga écrit dans le message de news: ln************@nuthaus.mib.org... Bart van Ingen Schenau <ba**@ingen.ddns.infowrites: Richard Heathfield wrote: [...] >You'd give an A+ for that? I'd give a C, tops. >> I am not that familiar with the letter-grade system. On a scale of 1 to 10 (10 being the highest score), I would give the program, if it was turned in as posted, at most a 5. For starters, the program does not meet the stated requirements.
Any decent scale for grading C programming assignment should be 0 based, don't you think ?
Well, you could think of the scale as running from 0 to 10. The first point is awarded for turning in a paper with your name on top. :-)
Yes, but some students don't even turn in anything, and others loose that
point by copying the rest of the assignment from another student or the
Internet. Zero sounds good for complete failure, even by coca cola
standards.
Most marking schemes I've see include the equivalent of NaN for
missing or copied assignments. It usually obeys similar arithmetic
laws and is consequently much feared.
--
Ben.
Richard Heathfield wrote:
Ian Collins said:
>Richard Heathfield wrote:
>>Al Balmer said:
<snip>
I do wish that the US would follow the UK (and most of the rest of the world) and go metric.
And I wish we would go back to Imperial weights and measures. Life in Britain is much more confusing than it needs to be. The last time I went to the grocer, I had to ask for 0.68038856 kilograms of carrots, 2.2679619 kilograms of spuds, and 1.8927059 pints of milk.
That's the trouble with these Europeans. Give them 25.4 millimetres and they'll take 1.1429982 metres.
Shouldn't that be 1,609.344 metres?
You refer to a modern corruption of the original adage.
I did, however, say "pints" where I intended to say "litres".
Why are you buying milk in US quarts. I would have thought
Imperial quarts would be more natural for you. :-)
--
Chuck F (cbfalconer at maineline dot net)
Available for consulting/temporary embedded and systems.
<http://cbfalconer.home.att.net>
--
Posted via a free Usenet account from http://www.teranews.com
Al Balmer <al******@att.netwrote:
On Wed, 12 Sep 2007 17:31:40 +0000, Richard Heathfield
Al Balmer said:
"Charlie Gordon" wrote:
>>Yet another example of the culturally engraved refusal to cope with the decimal system that plagues the USA.
has Richard move to the US? <g>.
Does this body look dead to you? No? Then no.
I do wish that the US would follow the UK (and most of the rest of the
world) and go metric.
You're a couple of days late. The UK is officiously going back to
playing the empire: <http://news.bbc.co.uk/2/hi/uk_news/6988521.stm>.
Richard
Richard Bos said:
<snip>
The UK is officiously going back to
playing the empire: <http://news.bbc.co.uk/2/hi/uk_news/6988521.stm>.
It's called "freedom of expression". If I want to measure in yards
instead of metres, I will do so. If you want to measure in metres
instead of yards, feel free! So long as neither of us is hurting others
by our choice of yardstick (or, if you prefer, 0.9144metrestick), who
cares? And if someone /is/ hurt by my choosing to go for a six mile
walk rather than a 9656.064 metre walk, then I really do think they
need to get themselves into town to pay a quick visit to the life shop.
--
Richard Heathfield <http://www.cpax.org.uk>
Email: -www. +rjh@
Google users: <http://www.cpax.org.uk/prg/writings/googly.php>
"Usenet is a strange place" - dmr 29 July 1999
On Thu, 13 Sep 2007 06:54:37 +0000, Richard Heathfield
<rj*@see.sig.invalidwrote:
>Richard Bos said:
<snip>
>The UK is officiously going back to playing the empire: <http://news.bbc.co.uk/2/hi/uk_news/6988521.stm>.
It's called "freedom of expression". If I want to measure in yards instead of metres, I will do so. If you want to measure in metres instead of yards, feel free! So long as neither of us is hurting others by our choice of yardstick (or, if you prefer, 0.9144metrestick), who cares? And if someone /is/ hurt by my choosing to go for a six mile walk rather than a 9656.064 metre walk, then I really do think they need to get themselves into town to pay a quick visit to the life shop.
Some people, arguably mainly those who classify themselves as
navigators (who like to think in terms of nautical miles), may
disagree with this assertion. In their world, six miles is exactly
11112 meters.
--
jay
"Richard Heathfield" <rj*@see.sig.invalida écrit dans le message de news: cP*********************@bt.com...
Richard Bos said:
<snip>
>The UK is officiously going back to playing the empire: <http://news.bbc.co.uk/2/hi/uk_news/6988521.stm>.
It's called "freedom of expression". If I want to measure in yards
instead of metres, I will do so. If you want to measure in metres
instead of yards, feel free! So long as neither of us is hurting others
by our choice of yardstick (or, if you prefer, 0.9144metrestick), who
cares? And if someone /is/ hurt by my choosing to go for a six mile
walk rather than a 9656.064 metre walk, then I really do think they
need to get themselves into town to pay a quick visit to the life shop.
I think it is just bad marketing. They should have used the beer argument:
with metric pints (0.5 litre) you get 10% more beer !
--
Chqrlie.
"Charlie Gordon" <ne**@chqrlie.orgwrote:
"Richard Heathfield" <rj*@see.sig.invalida écrit dans le message de news: cP*********************@bt.com...
Richard Bos said:
The UK is officiously going back to
playing the empire: <http://news.bbc.co.uk/2/hi/uk_news/6988521.stm>.
It's called "freedom of expression". If I want to measure in yards
instead of metres, I will do so. If you want to measure in metres
instead of yards, feel free! So long as neither of us is hurting others
by our choice of yardstick (or, if you prefer, 0.9144metrestick), who
cares? And if someone /is/ hurt by my choosing to go for a six mile
walk rather than a 9656.064 metre walk, then I really do think they
need to get themselves into town to pay a quick visit to the life shop.
I think it is just bad marketing. They should have used the beer argument:
with metric pints (0.5 litre) you get 10% more beer !
The UK government may be innumerate, but it's not _that_ innumerate. A
pint is 13.5% larger than half a litre.
Richard
(No, what you were thinking of is not a pint, regardless of what the
even worse innumerates on the other side of the pond call it.)
"Richard Bos" <rl*@hoekstra-uitgeverij.nla écrit dans le message de news: 46****************@news.xs4all.nl...
"Charlie Gordon" <ne**@chqrlie.orgwrote:
>"Richard Heathfield" <rj*@see.sig.invalida écrit dans le message de news: cP*********************@bt.com...
Richard Bos said:
The UK is officiously going back to playing the empire: <http://news.bbc.co.uk/2/hi/uk_news/6988521.stm>.
It's called "freedom of expression". If I want to measure in yards
instead of metres, I will do so. If you want to measure in metres
instead of yards, feel free! So long as neither of us is hurting others
by our choice of yardstick (or, if you prefer, 0.9144metrestick), who
cares? And if someone /is/ hurt by my choosing to go for a six mile
walk rather than a 9656.064 metre walk, then I really do think they
need to get themselves into town to pay a quick visit to the life shop.
I think it is just bad marketing. They should have used the beer argument: with metric pints (0.5 litre) you get 10% more beer !
The UK government may be innumerate, but it's not _that_ innumerate. A
pint is 13.5% larger than half a litre.
Of course, my mistake, US pints are the smaller ones.
(No, what you were thinking of is not a pint, regardless of what the
even worse innumerates on the other side of the pond call it.)
Well the innumeracy is indeed abysmal: http://dictionary.reference.com/browse/pint
pint comes from old French pinte, still used in today's French bars for 0.5
litre servings of beer.
--
Chqrlie.
"Charlie Gordon" <ne**@chqrlie.orgschrieb im Newsbeitrag
news:46**********************@news.free.fr...
pint comes from old French pinte, still used in today's French bars for
0.5 litre servings of beer.
And in Germany Pinte is a colloquial word for the bar itself... This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Ville Vainio |
last post by:
I need a dict (well, it would be optimal anyway) class that stores the
keys as strings without coercing the case to upper or lower, but still
provides fast lookup (i.e. uses hash table).
>> d...
|
by: Alan J. Flavell |
last post by:
A colleague recently breezed in with a new web page design. He
didn't tell me where he got the ideas from, but ...
Looking at his stylesheets, I noticed they identified themselves
as...
|
by: Ed |
last post by:
I've search around endlessly for a solution to this problem but have
not found anything yet.
I'm using Crystal 9 with .NET. I am not using a DSR to create the
report. Instead I am creating a...
|
by: Larry |
last post by:
Does anyone use the 3rd party utility CodeRush for VStudio? If so then I
would like to see how well it is loved or hated. I have been using the
trial for a week and I have a mixed opinion about...
|
by: Bill |
last post by:
Has anyone used ASP.NET to access Exchange 2000 to populate dropdownboxes
from a public folder contact?
I am not sure if this is possible, but I am needing a web application to
hit my exchange...
|
by: Tim Frawley |
last post by:
I am attempting to detect a Shift+Tab in the KeyPress event for back
navigation on a control that doesn't support this method. Does anyone
have any ideas how to compare e.KeyChar to a ShiftTab?
...
|
by: Robert Brown |
last post by:
Hi..
It would be nice if there was some samples to show how the MSDN XPBurn
is meant to work.
I have created an APP that transfers a database to an FTP server, then
backs up the Database to...
|
by: dkintheuk |
last post by:
Hi all,
Just had the wierdest thing happen overnight to one of my databases.
I have a frontend/backend set up with the front end under development
on my machine.
I was copying a load of old...
|
by: JohnQ |
last post by:
(The "C++ Grammer" thread in comp.lang.c++.moderated prompted this post).
It would be more than a little bit nice if C++ was much "cleaner" (less
complex) so that it wasn't a major world wide...
|
by: mahmoud wessimy |
last post by:
hi
can anyone tell me some ideas cauz i have a project in c++ to do any program i want but i don't know what to do?
|
by: CloudSolutions |
last post by:
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome former...
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: aa123db |
last post by:
Variable and constants
Use var or let for variables and const fror constants.
Var foo ='bar';
Let foo ='bar';const baz ='bar';
Functions
function $name$ ($parameters$) {
}
...
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
| |