If debugging is the process of removing bugs, then programming must be the process of putting them in. -- Edsger Dijkstra
derek smythe wrote:
Also, how did you people know about octal base numbers? I would never have known that. Do you know what I can do to improve my math ability please? I desperately need it. like any books you know? please. thanks.
Mike Simmons wrote:Yes, I believe it's covered in grade 1000.
Campbell Ritchie wrote:Welcome to the Ranch
I am confused about why the problem needed octal numbers.
derek smythe wrote:num1= generator.nextInt(0700)+0100;// note the octal notation
Junilu Lacar wrote:
Campbell Ritchie wrote:Welcome to the Ranch
I am confused about why the problem needed octal numbers.
The only reason I can think of is that an octal number would never have 8 or 9 in it, only 0 to 7 possible in an octal number.
The secret of how to be miserable is to constantly expect things are going to happen the way that they are "supposed" to happen.
You can have faith, which carries the understanding that you may be disappointed. Then there's being a willfully-blind idiot, which virtually guarantees it.
Junilu Lacar wrote:
Tim Holloway wrote:Now Cape Canaveral has Area Code 321.
I thought you might have been kidding. That's awesomely funny. Who says rocket scientists don't have a sense of humor?
The secret of how to be miserable is to constantly expect things are going to happen the way that they are "supposed" to happen.
You can have faith, which carries the understanding that you may be disappointed. Then there's being a willfully-blind idiot, which virtually guarantees it.
Junilu Lacar wrote:but how to test that for sure though, besides just eyeballing a bunch of sample output?
Junilu Lacar wrote:Here's what I came up with using IntStream. Seems to work the way it's supposed to
There are three kinds of actuaries: those who can count, and those who can't.
There are three kinds of actuaries: those who can count, and those who can't.
We had to wait until 1995 when most dialling codes (=area codes) had a 1 inserted as their second character, and (I think) mobiles (=cells) were all allocated numbers starting 07...Tim Holloway wrote:. . .
about 1990, when the Great Area Code Explosion occurred.
. . .
Piet Souris wrote:
A theoretcal problem is that you might produce an awful lot of octals < 100 or > 800, before the first suitable is found. An alternative is, say:
with the slight disadvantage of a biass.
There are three kinds of actuaries: those who can count, and those who can't.
Piet Souris wrote:Don't hurry with that stats course: your reasoning is spot on.
There are three kinds of actuaries: those who can count, and those who can't.
A feeble attempt to tell you about our stuff that makes us money
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
|