Answered step by step
Verified Expert Solution
Question
1 Approved Answer
6 points Output the classic (albeit slightly modified) drinking song: 99 bottles of Pepsi on the wall, 99 bottles of Pepsi. Take one down,
6 points Output the classic (albeit slightly modified) drinking song: 99 bottles of Pepsi on the wall, 99 bottles of Pepsi. Take one down, pass it around, 98 bottles of Pepsi on the wall. Continue this song until there is no more sugary goodness to go around. Note that whenever your program deals with one bottle, is should use t (e.g. 1 bottle, O bottles, 10 bottles). Test Case 1 99 bottles of Pepsi on the wall, 99 bottles of Pepsi. Take one down, pass it around, 98 bottles of Pepsi on the wall. 98 bottles of Pepsi on Take one down, pass it 97 bottles of Pepsi on Take one down, pass it 96 bottles of Pepsi on the wall, 98 bottles of Pepsi. around, 97 bottles of Pepsi on the wall. the wall, 97 bottles of Pepsi. around, 96 bottles of Pepsi on the wall. the wall, 96 bottles of Pepsi. Take one down, pass it around, 95 bottles of Pepsi on the wall. 95 bottles of Pepsi on the wall, 95 bottles of Pepsi. MacBook Air
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started