HQ9+ Code Challenge
*Easy Homework
-
Created a method "h" that is a global method
- "h" outputs "Hello World!" and exits the program.
-
Created an HQ9F class
-
Created two more methods inside the HQ9F class: "_99" and "+."
a. "_99" takes one variable: the number of bottles of beer on the wall. It outputs the lyrics to the hugely popular "99 Bottles Of Beer On The Wall" song, including a sad lament when there is no more beer.
b. "+" increments the accumulator.