Question: For this project, you will need to design, implement and test a Lyrics Generator which will produce the verse (lyrics) of the song 99 Bottles

For this project, you will need to design, implement and test a Lyrics Generator which will produce the verse (lyrics) of the song 99 Bottles of Beers.

  • Ask a user for a given starting point (between 1 and 99)
    • Only generate verse from the starting point, such as 5, dont generate the entire verse every time
    • Validate each input; dont accept any out of range numbers nor text string
      • 100 or higher is invalid
      • Zero and negative numbers are invalid
    • Any form of Yes, Y, or YES means they want to play again
    • The same expectation for No
  • Allow the user to repeat (generating the lyrics again) as often as they like to
    • Your audience is children, they love the lyrics!

For this project, you will need to design, implement and test a

the language is Python

Welcome to the "Bottles of Beer" (game) Which verse should I generate (Enter a number between 1 and 99)? Enter a number: 100 Invalid number Which verse should I generate (Enter a number between 1 and 99)? Enter a number: 0 Invalid number Which verse should I generate (Enter a number between 1 and 99)? Enter a number: 2 2 bottles of beer on the wall, 2 bottles of beer, Take one down, pass it around, 1 bottle of beer on the wall! 1 bottle of beer on the wall, 1 bottle of beer, Take one down, pass it around, No more bottles of beer on the wall! Go to the store and buy some more, 99 bottles of beer on the wall Would you like to play again (Enter Yes / No)? Enter a Y/N: Yes Which verse should I generate (Enter a number between 1 and 99)? Enter a number: 4 4 bottles of beer on the wall, 4 bottles of beer Take one down and pass it around, 3 bottles of beer on the wall 3 bottles of beer on the wall, 3 bottles of beer Take one down and pass it around, 2 bottles of beer on the wall 2 bottles of beer on the wall, 2 bottles of beer Take one down and pass it around, i bottle of beer on the wall 1 bottle of beer on the wall, 1 bottle of beer Take one down and pass it around, no more bottles of beer on the wall No more bottles of beer on the wall, no more bottles of beer Go to the store and buy some more, 99 bottles of beer on the wall Would you like to play again (Enter Yes / No)? Enter a Y/N: No Thank you! Have a great day

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!