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 |
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 |
__________________________________________________________ 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
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