Question: Prior to working on your programming assignments....please complete and submit this practice assignment. If you have not already done so, you will need to download

Prior to working on your programming assignments....please complete and submit this practice assignment.

If you have not already done so, you will need to download and install a standard C++ compiler. See Week 0: Getting Started module for compiler information.

How to Submit

Using any standard C++ compiler write your program (aka. source) code, compile and debug your program until you show the correct program output. Submit your "source code" to the two programming challenges below by saving them as a .cpp file and attaching them to the file submission area below. For the short answer questions, save and submit as a text file (.txt extension). Complete all parts of this practice assignment prior to clicking submit.

Practice program #1:

Use the editor in your compiler to key in the following program. You are not expected to understand what it does; just type it exactly as shown.

//practice assignment#1 //your name here #include  #include  //A C++ compiler users may need this header file to allow calls to system commands using namespace std; int main() { cout << "Hello there!....or should I say NAMASTHE "<< endl; cout << "After no late-spring rain it looks like it is another warm summer day "<< endl; cout << endl; cout << "Too bad we cannot get to the Maggini Hall labs to stay cool " << "and write some useful computer programs" << endl << endl; cout << "C++ is a high-level programming language"; cout << ".....LETS GIVE IT A GO!!!" << endl; cout << "your name here" << endl; system ("PAUSE"); //if using MS Visual C++...not needed in Code::Blocks, XCode or replit return 0; }

When you have finished keying in this program, try to compile it. If you have made any typing errors, correct them and try to compile the program again. When the program compiles without any errors, you are ready to run it. When the program runs the program (aka. console) output window should show six lines of output. Did you get the correct output? If so you are ready to submit this program.

Practice program #2:

(a) Write a program to print out the following lines from Dr. Seuss's Horton Hatches the Egg.1

I meant what I said And I said what I meant An elephant's faithful One hundred percent

(b) Put a border of asterisks around the entire quotation (all four sides). Each line of the quotation should be sent to the output stream in the same statement.

Use the program structure below to complete both parts of this assignment.

// Program seuss prints out quotations from Dr. Seuss's Horton Hatches the Egg. #include  #include  #include  //A C++ compiler users may need this header file to allow calls to system commands using namespace std; int main() { system ("PAUSE"); //if using wxDev-C++ or MS Visual C++ ...not needed in Code::Blocks or XCode return 0; }

__________________________________________________________ 1 Dr. Seuss, Horton Hatches the Egg (New York: Random House, 1940

3. Short Answer Questions

1. What computer are you using? Mac, PC or other?

2. Which operating system are you using?

3. Which C++ system are you using? CodeBlocks, Visual C++, Visual Studio Code, XCode (MAC) or an online compiler such as repl.it

4. How many files where created as a result of writing, debugging and compiling each program?

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!