my dog learned polymorphism*
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "grains assignment" Watch "grains assignment" New topic
Author

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"
Sheriff

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: grains assignment
 
Similar Threads
Grains assignment
Grains - algorithm
doubleValue++
How do you represent BIG numbers
Can you clarify Assignment 1.6 pls?