Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

This week, you will create a C++ program using Bluefish. This program will displ

ID: 3693665 • Letter: T

Question

This week, you will create a C++ program using Bluefish. This program will display a David Letterman style "Top Ten List".

Here are the prerequisites for this assignment:

Make sure that you have a C++ compiler installed (refer to the C++ compiler installation document included in this week's module).

Open a Terminal or Command Prompt.

Check your current directory using the cd command (on Windows), or the pwd command (on Mac OS X or Linux). I will refer to this directory as your "Working Directory".

Here are the requirements for this assignment:

Using Bluefish, create a C++ file named loop.cpp in your "Working Directory".

Output the title to the screen.

Create a loop that runs 10 times.

The loop will contain a counter that counts down from 10 to 1.

Each time the loop runs, the program will output the message corresponding to the next lower number.

Once the loop has displayed the final message, it should ask the user whether to repeat the list or exit the program.

If the user selects "exit", the program will end.

If the user selects "repeat", the loop will start over.

Compile your program, and make sure that it works as expected.

Here is the list of messages to display:

Top Ten Reasons Dogs Don't Use Computers:

Can't stick their heads out of Windows 10.

Fetch command not available on all platforms.

Hard to read the monitor with your head cocked to one side.

Can't help attacking the screen when they hear "You've Got Mail."

Keep bruising noses trying to catch that MPEG frisbee.

Not at all fooled by Chuckwagon Screen Saver.

Three words: Carpal Paw Syndrome.

SIT and STAY were hard enough, GREP and AWK are out of the question!

Saliva-coated mouse gets mighty difficult to manuever.

Fire hydrant icon simply frustrating.

Hint 1: Make sure that you provide the correct filename to g++ when compiling - if you save your file as loop.cpp, you need to tell g++ to compile loop.cpp.
Hint 2: Use a switch statement to contain/select the messages.
Hint 3: Use a while(exitvar != "exit") loop to around your entire "Top Ten" loop to repeat the list (use one loop to iterate the list, and a second loop to repeat the list).

Explanation / Answer

.h Style Program : Old Style

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote