CH03 - An Introduction to Programming with C++, Fifth...

Info iconThis preview shows pages 1–4. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: An Introduction to Programming with C++, Fifth Edition 3 - 1 Chapter 3 Completing the Problem-Solving Process and Getting Started with C++ At a Glance Review Sheet Table of Contents Chapter Overview Chapter Objectives Notes Quick Quizzes Troubleshooting Tips Key Terms An Introduction to Programming with C++, Fifth Edition 3 - 2 Review Notes Chapter Overview This chapter picks up in the problem-solving process at the point where the algorithm is converted into actual program code. In order to do this, the programmer must understand the rules and syntax of the language. The beginning syntax of a simple C++ program utilizing basic input, arithmetic operations, and output is introduced, as well as C++ compiler implementation of the final program. Chapter Objectives After completing the chapter, the student will be able to: Code an algorithm into a program Desk-check a program Evaluate and modify a program Understand the components of a C++ program Create a C++ program Save, build, and execute a C++ program Locate and fix an error in a C++ program Print a C++ program Make a backup copy of a C++ solution Review Notes More on the Problem-Solving Process In the previous chapter, the problem-solving process was taken up to step 3, which is desk- checking, the algorithm. At this point, the reviewed algorithm is ready to be converted into actual program code. Once the algorithm has been converted, the problem-solving process will continue with the program code being desk-checked, and then the program will be evaluated and modified if necessary. Just like the algorithm was desk-checked, the first draft of the program should also be desk- checked. Once again, a set of sample data must be created, and a walk-through of the code must be conducted to verify the order and accuracy of steps. An Introduction to Programming with C++, Fifth Edition 3 - 3 Once the desk-check of the program has been conducted, one must evaluate and modify the program if necessary. Even though a great deal of time was put into the problem-solving process up to this point, some details could have still been overlooked. Therefore, based upon the desk- checking that was performed once the program was coded, you may need to make program code changes or changes to the original algorithm. This is why a great deal of time needs to be spent on the original algorithm. Coding the Algorithm into a Program The chapter continues to examine the problem introduced in the previous chapter. Specifically, it details steps 4-6 in the problem-solving process. Assigning Names, Data Types, and Initial Values to the IPO Items In the next chapter, variables will be covered in great detail. However, when coding the program from the IPO chart, you will want to assign names, data types, and initial values to the IPO items....
View Full Document

This note was uploaded on 03/11/2010 for the course CS 343 taught by Professor Katzman during the Spring '09 term at ITT Tech Tucson.

Page1 / 11

CH03 - An Introduction to Programming with C++, Fifth...

This preview shows document pages 1 - 4. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online