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

grains assignment

tyler jones
Ranch Hand

Joined: Dec 01, 2000
Posts: 101
I've looked over the assignment for grains. It seems like it's a very simple exercise to simply double each number. But, I'm sure this is incorrect. I'm not sure what the class I'm looking for is supposed to do? I mean, if I follow the example...
square 1: 1 grain
square 2: 2 grains
square 3: 4 grains
square 4: 8 grains
...then I can just use a simple for loop to run through and double the value each time. I know this isn't the purpose of the assignment, but I'm confused as to what they're looking for. Can anyone offer a bit more detail on the desired outcome of this? Thanks.
Cindy Glass
"The Hood"

Joined: Sep 29, 2000
Posts: 8521
If this is a Cattle Drive assignment - then the place to ask this Question is the Cattle Drive Forum.

"JavaRanch, where the deer and the Certified play" - David O'Meara
tyler jones
Ranch Hand

Joined: Dec 01, 2000
Posts: 101
Oh, woops, I meant to post it there and must have accidentally clicked on the wrong forum. Sorry, I'll post it over there.
jQuery in Action, 3rd edition
subject: grains assignment
jQuery in Action, 3rd edition