Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write a C++ program which will print the lyrics to the song Bingo. The catch: the name of the dog must be stored in a
Write a C++ program which will print the lyrics to the song Bingo. The catch: the name of the dog must be stored in a constant array of characters, and this array must be used every time the dog's name needs to be printed to the screen. Requirements: Name the source file for your program program5.cpp . The following two declarations are required, in the global space: const int SIZE 5 const char dog[SIZE ',IN, G',0'1 Any time the word BINGO needs to be printed, even partially, it must be by accessing the array dog A sample run of your program should look exactly liker There was a farmer had a dog and Bingo was his name-o BING BING 0 BING 0 And Bingo was his name-o There was a farmer had a dog and Bingo was his name-o INGO ING 0 ING0 And Bingo was his name-co There was a farmer had a dog and Bingo was his name-o NG 0 NG 0 And Bingo was his name-o There was a farmer had a dop and Bingo was his name-o G 0 kG0 And Bingo was his name-o There was a farmer had a dog and Bingo was his name-o 0 0 And Bingo was his name-o There was a and Bingo was his name-o farmer had a dop And Bingo was his name-o Hints: The full name "BINGO" appears twice in each verse, with different capitalization. A function could be helpful. - The library
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