• 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
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

program assignment

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I was trying to do the assignments in the cattle drive.
The question is
"Write a program that will read in a number from 0 to 99 and spell out that number. The program must also report any values that are out of range.
In other words, I want to type
java Say 22
and see
twenty-two"
How would i go about writing this program.
please give some guidelines

 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm in the middle of this assignment myself. I think I'm getting too bogged down (I'm going for the extra, extra credit) but I do have some suggestions for you if you're just getting started:
Think in terms of "speech". Remember Paul's example, "nine hundred ninety-nine billion, nine hundred ninety-nine million...". I don't want to go too far in the forum so feel free to email me personally if you would like.

Originally posted by Patel a:
How would i go about writing this program.
please give some guidelines


 
Ranch Hand
Posts: 146
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I would suggest you not to take tips from others and try to solve the assignment on your own. Initially, it might take some time but then programming profession is all about hard work and perseverence.

[This message has been edited by Milind Kulkarni (edited August 28, 2000).]
 
Patel a
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank for your suggests. I actually thought about it and did come up with a solution.
Milind Kulkarni, I agree with you advice. It took some time, but I did come up with a solution.
 
reply
    Bookmark Topic Watch Topic
  • New Topic