Write a program that outputs the lyrics for "ninety-nine bottles of beer on the wall." your program should print the number of bottles in english, not as a number. for example: ninety-nine bottles of beer on the wall, ninety-nine bottles of beer, take one down, pass it around, ninety-eight bottles of beer on the wall. one bottle of beer on the wall, one bottle of beer, take one down, pass it around, zero bottles of beer on the wall. your program should not use ninety-nine output statements! design your program with a class named beersong whose constructor takes an integer parameter that is the number of bottles of beer initially on the wall. if the parameter is less than zero, set the number of bottles to zero. similarly, if the parameter is greater than 99, set the number of beer bottles to 99. then make a public method called printsong that outputs all stanzas from the number of bottles of beer down to zero. add any additional private methods you find . hint: stanzas are all same, only a number of bottles is different. use method to form your stanzas. you can see the lyrics for the song here (links to an external

Solved
Show answers

Ask an AI advisor a question