CH02 - 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
An Introduction to Programming with C++, Fifth Edition 2 - 1 Chapter 2 Beginning the Problem-Solving Process At a Glance Instructor’s Manual Table of Contents Chapter Overview Chapter Objectives Instructor Notes Quick Quizzes Discussion Topics Classroom Activities/Additional Projects Key Terms
Background image of page 1

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

View Full DocumentRight Arrow Icon
An Introduction to Programming with C++, Fifth Edition 2 - 2 Lecture Notes Chapter Overview This chapter stresses the importance of proper design in the programming process. It also shows where design fits in the overall process of problem solving. Different methods of designing the solution to the problem are shown (flowcharts & pseudocode). The author does an excellent job with her examples of implementing the problem-solving process. Chapter Objectives After completing the chapter, the student will be able to: Explain the problem-solving process used to create a computer program Analyze a problem Complete an IPO chart Plan an algorithm using pseudocode and flowcharts Desk-check an algorithm Instructor Notes Problem Solving You solve problems in your everyday life from the time you wake in the morning until you go to sleep at night. Most of the problems you solve, you do so without thinking about them. Think about it, when is the last time you wrote down the steps to brush your teeth, comb your hair, or crank your car? Because you consider these to be simple tasks, you have probably never written steps to accomplish them; instead, you just do them without thinking about them. Simple tasks do not require us to think about how we carry them out. But when presented with a much more complex task, we sometimes have to sit down and plan how to accomplish the task at hand. Since your students are new to computer programming, we can approach each program that they need to write as a very complex task. This way, we can properly analyze what we need to do and make sure we solve the problem correctly. Solving Everyday Problems When you solve everyday problems, you go through a series of steps, usually without even thinking about them. The first step you carry out is to analyze the problem at hand. After analyzing the problem, you then create a plan to solve the problem, review it, implement the solution, evaluate your results, and modify it if necessary.
Background image of page 2
An Introduction to Programming with C++, Fifth Edition 2 - 3 While you did not realize it, if you stop and think about a simple task you carry out every day (like brushing your teeth), you go through a problem-solving process. Since we are going to solve problems by writing computer programs, we will need a very systematic process by which to solve problems. Since analyzing the problem was the first step, the second step would be to create an algorithm. Remember from Tutorial 1 that an algorithm is the step-by-step instructions that accomplish a task. Another definition of an algorithm could be a series of finite steps that solve a problem. Also note that an algorithm should not consist of an
Background image of page 3

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

View Full DocumentRight Arrow Icon
Image of page 4
This is the end of the preview. Sign up to access the rest of the 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 / 7

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