• 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

Java-4a (Say), Instructor solution flaw?

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Try: java Say 00 or java Say 000
Shouldn't those spell 'zero'?
 
Sheriff
Posts: 9109
12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
How many people do you know who write "00" when they want to write "zero"?
 
whippersnapper
Posts: 1843
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
(I occasionally see "00/100" for "zero cents" on checks -- not that I think that should be emulated or that Say needs to deal with 00 or 000 as input.)
 
Ranch Hand
Posts: 1012
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i guess it should say: "double-zero" or "triple-zero"...
 
Craig Lewis
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
geezzzz, I thought is was funny
But some of the customers I deal with would probably do it!
[ June 13, 2002: Message edited by: Craig Lewis ]
 
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I guess if you try hard enough you can break anything. It took me 1111111 attempts on "Say" and it almost broke me.
 
Trailboss
Posts: 23778
IntelliJ IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Marilyn asked me to comment on this ....
I think that if one would like to write the ultimate say program, on their own time, go for it. I do think that you need to have some common checks, but we don't have to try to protect ourselves against hackers or really random keystrokes.
The purpose here is to be presented with something that appears "too big": "I can't possibly write a program that does that. I cannot wrap my head around it. It would take years of experience before I could handle something like that!" Then you break it into small pieces and realize that, yes, you can do it. By yourself. And, therefore, you can take on really huge stuff.
Each assignment is riddled with shortcomings that make it less than useful in "the real world" - but it is a stepping stone into full usefulness.
 
brevity is the soul of wit - shakepeare. Tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic