File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Cattle Drive and the fly likes Asmt 1.4 Suggestion Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » This Site » Cattle Drive
Bookmark "Asmt 1.4 Suggestion" Watch "Asmt 1.4 Suggestion" New topic

Asmt 1.4 Suggestion

Allen Alchian
Ranch Hand

Joined: Oct 11, 2000
Posts: 83
Marilyn or Paul,
Your directions for assignment 1.4 read, in part:
I want to type
java Say 22
and see
More extra credit if you can handle numbers as large as nine hundred ninety-nine billion, nine hundred ninety-nine million, nine hundred ninety-nine thousand, nine hundred ninety-nine.
However, when I accomplished both the tasks, your evaluation inclulded the following comments:
"So you are putting comma's between the words. Interesting, but I want you to change it so that you only write the words themselves. One of the rules of the cattle drive is don't add extra stuff unless specifically mentioned. It just makes more work for me and I'm lazy."
I can fully appreciate not wanting extra stuff added to the assignments, but if you note in the assignment statement, commas are included in the assignment statement. Like the hypens, I assumed you wanted the commas also.
I'll remove the commas from the code...that's easy to do and it was a good exercise to make them appear only at the proper location.
I'd like to suggest you remove them from the problem statement if you don't want them to appear in the code.
Thanks for the coding help!

paul wheaton

Joined: Dec 14, 1998
Posts: 20971

I think the commas should stay in. I think proper formatting requires it, but I'm not sure. I guess this falls into the realm of anal retentive formatting of the english language: any volunteers to sort this one out?

permaculture Wood Burning Stoves 2.0 - 4-DVD set
Jim Yingst

Joined: Jan 30, 2000
Posts: 18671
Well, my ears were ringing, and I decided to browse this forum, which I don't do ordinarily. Just a coincidence I'm sure. For my part I agree that proper formatting requires the commas. Maybe it would be slightly clearer if the problem statement explicitly asked for commas.

"I'm not back." - Bill Harding, Twister
paul wheaton

Joined: Dec 14, 1998
Posts: 20971

When I did the cattle drive, I never paid attention to the commas. I let it go. I guess I felt I had bigger fish to fry.
I suppose a good test would be to run their program with a pre-determined number and direct the output to a file. Then do a "diff" or "fc" (depending on the o/s of the day) and make sure the files are exactly the same.
paul wheaton

Joined: Dec 14, 1998
Posts: 20971

Marilyn is now running the cattle drive. On this issue (and probably most others), I'll leave it up to Marilyn.
I agree. Here's the link:
subject: Asmt 1.4 Suggestion
It's not a secret anymore!