• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

stuck with say(b)

 
Ranch Hand
Posts: 424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I just was very pleased to combine all my needed strings into one string array.
> private static String[] allNumberWords =
<snip>
,"six","seven","eight","nine","ten","eleven","twelve","thirteen"
<snip>
"nineteen"
> ,"twenty","thirty","fourty","fifty","sixty", "seventy","eighty","ninty"};
Marilyn wrote:
You have some words that go by ones and some that go by tens. And you have all sorts of wacky math to dig out the right string.
My math, is not so '....' ( ... = wacky what ever this may means, see further down )
-1- I need to know if there are hundreds. (one division)
-2- less then 21 (one if)
-3- the tenth >20 (one modulo)
-4- the unity-digits ( eg. from 45 the 5, or 60 the 0)
(indexbase plus one division)
-5- (I forgot) the less than hundreds (one modulo)
I do not see that the english language of numbers spoken do have
a nicer 'algorithm' to decide what is to be 'spoken'. (up to 999)
There is only ONE place where a little bit more complicated index computation is necessary. Using ONE string array
picking out the 'tenth-string > 20' is the 'more complicated' one: It is one addition and one division by 10. Is this the meaning of 'wacky'?

Other small topic.
Do you like something like:
... String [] ... = {"","","","thirty",...};
I mean to avoid index computations; 3 refers now directly to thirty, the third element of ...?
And something more:
Where and when is the borderline to not use
large numbers such as 999999999999L such that we are asked to introduce a 'constant' with a good name.
Is 1000L permissable, etc.?! Used ONCE, or more?
[This message has been edited by Peter Gragert (edited March 15, 2001).]
[This message has been edited by Peter Gragert (edited March 15, 2001).]
 
Ranch Hand
Posts: 3141
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Peter ...
I'll try to help without giving too much away (if I do Marilyn, JC or Paul can edit )


I do not see that the english language of numbers spoken do have
a nicer 'algorithm' to decide what is to be 'spoken'. (up to 999)


When you say 999 it implies 'nine hundred and ninty-nine'


Do you like something like:
... String [] ... = {"","","","thirty",...};
I mean to avoid index computations; 3 refers now directly to
thirty, the third element of ...?


You're on the right track but aren't there tens below 30?


Where and when is the borderline to not use large numbers such as 999999999999L such that we are asked to introduce a 'constant'
with a good name.


When you have to start mentally counting the digits to recognize the number A 'good name' is akin to something you'd say and that people would immeadiately recognize.


Is 1000L permissable, etc.?! Used ONCE, or more?


Is there more than 'one thousand' in a million? a billion?
Hope that helps.
Jane
 
Ranch Hand
Posts: 219
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I believe it goes:<h4><pre>
Thousand
Million
Billion
Trillion
Quadrillion
Quintillion
Sextillion
Septillion
Octillion
</pre></h4>
And that's all the further I know
("know" = barely remember but I think so...)
Please, someone correct me if I am wrong, or add to the list...
 
Sheriff
Posts: 9109
12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Peter Gragert:
I just was very pleased to combine all my needed strings into one string array.

My math, is not so '....' ( ... = wacky what ever this may means, see further down )



Wacky means eccentric or strange or crazy (but in a nice way). In this case it means unnecessarily complex.

I think the line I was referring to contained:
[ 18 + lessThan100 / 10 ]
as an index to the array.


Do you like something like:
... String [] ... = {"","","","thirty",...};
I mean to avoid index computations; 3 refers now directly to thirty, the third element of ...?


We want to avoid index computations.


And something more:
Where and when is the borderline to not use
large numbers such as 999999999999L such that we are asked to introduce a 'constant' with a good name.
Is 1000L permissable, etc.?! Used ONCE, or more?



When the numbers get big enough that it gets hard to tell how many 9's or 0's there are in the number, it is good to introduce a constant for the sake of readability.


[This message has been edited by Marilyn deQueiroz (edited March 15, 2001).]
 
Peter Gragert
Ranch Hand
Posts: 424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
We will see, up to next version.
And thanks to all your replys!
 
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,
A "zillion" is defined as an extremely large indefinite number. At one point I thought I'd be submitting a zillion different versions of the Say assignment. If you're stuck, I'd suggest walking away from it for a day or so. Bits of insight or an outright solution have a way of popping into your head when your mind is on something else.
Pat B.
 
ryan burgdorfer
Ranch Hand
Posts: 219
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I seem to get the best results by letting my subconscious do the work for me. As I lie in bed, nearing sleep-state, I concentrate on a current conundrum. The more relaxed I become, the more insight I potentially gain into the problem.
Sometimes, I have to force myself to relax, first by consciously forcing every muscle to relax, from toes up, combined with long, deep breaths. Then, I visualize typing certain sentences out on a keyboard. I try to make these "sentences" relate to the problem (as in lines of code, comments, desription of problem, etc.)...but sometimes I just use "The quick brown fox jumps over the lazy dog" over and over...
<h3>Try it...it works, you'll see!
 
Ranch Hand
Posts: 116
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ryan,

I'm not sure you're around, however, I just found something that you may enjoy... Check this out!

Marilyn, why not require up to a centillion? ... or maybe a myrillion?

P.S. If you're serious about your meditation, check this out. I'm on Awakening Level One (actually the second level of 13) and it's phenomenal!
[ February 15, 2005: Message edited by: Marcus Laubli ]
 
Marilyn de Queiroz
Sheriff
Posts: 9109
12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Did you buy the CD?
 
Marcus Laubli
Ranch Hand
Posts: 116
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Marilyn,

Yes, I bought the entire program up front. It's actually incredible.

I'm using the course to help me regain the functioning of my brain and remap what was lost due to illness.

I was also born with monocular (not binocular) vision. After 4 days of using Holosync, I suddenly saw three dimensional for the first time in my life. The "therapy" as I call it has it's good and better reasons for me to use it! I started with level 1 in October. I'm looking forward to regaining my complete cognitive and memory functionality using this program.

People who have known me for many years say that I'm becoming my "old self" again, people who have only known me since I moved to Arizona (26 months ago) are amazed at how my personality has changed and how much more alert I am.

There is a catch. You really have to sit down for an hour a day. Plan on the entire program taking 5 to 8 years. However, as your brain becomes more able to process what the CD is throwing at you, you will need less sleep. I"m functioning well, no, feel refreshed on about 6 to 6 1/2 hours of sleep, after just 4 plus months of using it. Remember, when I was in the worst of the illness, I was sleeping 16 plus hours. This is a huge difference!

I'd recommend the program for anyone who is serious about meditation, for mediation's sake, and for anyone who really wants to increase brain functionality (right brain, left brain equalization, etc.).

Marilyn, I was trained in Audio/Video technologies while in High School (over 25 years ago). I've volunteered as the contact person for Audio issues for our churches across America for several years now. From all of this audio experience, I can tell you that these sound waves really do what they are designed to do. In the first 30 minutes, the CD actually picks you up in your conscious/aware state (Beta brain wave state), brings you through the twilight(Alpha brain wave state) and REM Sleep (Theta brain wave state) states and leaves you in the deep sleep (Delta brain wave state) state for the remaining thirty minutes. This deep sleep or Delta brain wave state is where all of the repair, re-wiring, rejuvenation, etc takes place. This is the reason I need this program. We've seen incredible things happening in my life. I'm really looking forward to how I'll be able to use my mind in the future!
[ February 16, 2005: Message edited by: Marcus Laubli ]
 
village idiot
Posts: 1208
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Wow. How come I haven't heard of this program? Is it something new, or am I incredibly out of touch with what's going on in the world?
 
Marcus Laubli
Ranch Hand
Posts: 116
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Carol,

I only stumbled on it because I searched Google for "mind training" because of the injury to my brain. These guys have been around for about 10 years, however, much of the research was done in the 70s and 80s.

Don't feel bad!
 
reply
    Bookmark Topic Watch Topic
  • New Topic