Question: Programming Fundamentals II- Using Visual Studio 2019- C++ Please separate the Assignment 2 and 3 and write comments to understand which code is for which
- Programming Fundamentals II-
- Using Visual Studio 2019-
- C++

Please separate the Assignment 2 and 3 and write comments to understand which code is for which assignment. I did not post separately the assignment because it is hard for others to understand the assignment 3 without writing assignment 2. I appreciate you time.
This assignment is to write a program that will write the lyrics to "X number of beers on the wall" where X is a number from 1 to 100. Use only the main method. Prompt for the initial number of bottles of beer on the wall. Confirm the value is greater than zero and less than 101 and repeatedly prompt again if the entered data is out of range. Your program should then generate the following console output. The example below assumes the number 3 was entered. You loop each time until there are 0 bottles of beer on the wall. 3 bottles of beer on the wall. 3 bottles of beer. Take 1 down, pass it around. 2 bottles of beer on the wall. 2 bottles of beer on the wall. 2 bottles of beer. Take 1 down, pass it around. 1 bottle of beer on the wall. 1 bottle of beer on the wall. 1 bottle of beer. Take 1 down, pass it around. O bottles of beer on the wall. Note that the value in the 4th sentence is an implied -1 from the value in sentence 1. There are different ways to code this that would produce the same result. Your code should express the relationship in a simple manner. Note when there is only 1 bottle reference, bottles becomes singular. Deliverable for assignment 1 is your CPP program and pseudo code text file and a flow chart. The flow chart can be a photo of hand written work. Do not post a Microsoft Visual Studio Solution File. Copy the program from Assignment 2 and name it Assignment 3. This assignment is intended to have the same output as Assignment 2. Continue to do your loop in the main method. Create a new bool method that will generate the console output for the lyrics. You must pass the X number of beers to the method and call this method inside your loop. The main() method should not have any display work related to the lyrics. The prompts for the initial value should remain in main(). This new method must return true when passed a number equal to 2 or higher. This method must return false if the passed value is less than 2. The loop must run as long as the returned value of the method is true. HINT: If you were using a "FOR" loop for assignments 1, you may want to consider another looping construct
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
