Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

grains assignment

 
tyler jones
Ranch Hand
Posts: 101
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 8521
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If this is a Cattle Drive assignment - then the place to ask this Question is the Cattle Drive Forum.
 
tyler jones
Ranch Hand
Posts: 101
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Oh, woops, I meant to post it there and must have accidentally clicked on the wrong forum. Sorry, I'll post it over there.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic