Results 1 to 3 of 3
Thread: 'Bottles of Beer' project
- 02-14-2010, 02:28 PM #1
Member
- Join Date
- Feb 2010
- Posts
- 2
- Rep Power
- 0
'Bottles of Beer' project
There is a rhyme (a bit like 'Ten Green Bottles' ) called 'Bottles of Beer' which runs thus:
4 bottles of beer on the wall,
4 bottles of beer,
Take one down, pass it around (hic),
3 bottles of beer on the wall.
3 bottles of beer on the wall,
3 bottles of beer,
Take one down, pass it around (hic),
2 bottles of beer on the wall.
2 bottles of beer on the wall,
2 bottles of beer,
Take one down, pass it around (hic),
1 bottles of beer on the wall.
1 bottles of beer on the wall,
1 bottles of beer,
Take one down, pass it around (hic),
0 bottles of beer on the wall.
... well apart from the slight grammatical problem. Clearly the starting number can vary.
I need help with the following:
-Requests the starting value for 'Bottles of Beer' . (For this question assume the user always enters a sensible value.)
-Loops the appropriate number of times
-Prints a verse of the rhyme in each iteration
Thanks in advance!
- 02-14-2010, 03:25 PM #2
Senior Member
- Join Date
- Feb 2010
- Location
- Ljubljana, Slovenia
- Posts
- 470
- Rep Power
- 4
Well, where exactely are you stuck, what have you done so far? Usually questions of the "here's my homework, do it for me" type don't get a lot of attention.
-
Try solving each step of your problem in isolation (each of the three sentences above prepended with a hyphen). Then please feel free to come on back with your code (using code tags -- please see my signature below for details) and any specific questions you may have. Much luck!
Similar Threads
-
need help for a project
By megironi in forum New To JavaReplies: 4Last Post: 02-07-2009, 08:28 PM -
open existing project project ..
By itaipee in forum EclipseReplies: 1Last Post: 12-28-2008, 08:12 PM -
Could anyone help with project?
By billdara in forum New To JavaReplies: 1Last Post: 03-12-2008, 05:05 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks