CHAPTER ONE Problem Solving and the Object- Oriented Paradigm.

Slides:



Advertisements
Similar presentations
CS101: Introduction to Computer programming
Advertisements

Chapter 2- Visual Basic Schneider1 Chapter 2 Problem Solving.
© Janice Regan Problem-Solving Process 1. State the Problem (Problem Specification) 2. Analyze the problem: outline solution requirements and design.
© 2003 The McGraw-Hill Companies, Inc. All rights reserved. Project Analysis and Evaluation Chapter Eleven.
© 2003 The McGraw-Hill Companies, Inc. All rights reserved. Credit and Inventory Management Chapter Twenty-One.
McGraw-Hill/Irwin Copyright © 2008 by The McGraw-Hill Companies, Inc. All rights reserved. Chapter 14 Programming and Languages.
© 2003 The McGraw-Hill Companies, Inc. All rights reserved. Working with Financial Statements Chapter Three.
©The McGraw-Hill Companies, Inc. Permission required for reproduction or display. slide 1 CS 125 Introduction to Computers and Object- Oriented Programming.
© 2003 The McGraw-Hill Companies, Inc. All rights reserved. Raising Capital Chapter Sixteen.
© 2003 The McGraw-Hill Companies, Inc. All rights reserved. Options and Corporate Finance Chapter Fourteen.
©TheMcGraw-Hill Companies, Inc. Permission required for reproduction or display. COMPSCI 125 Introduction to Computer Science I.
© 2003 The McGraw-Hill Companies, Inc. All rights reserved. Introduction to Valuation: The Time Value of Money Chapter Five.
©The McGraw-Hill Companies, Inc. Permission required for reproduction or display. slide 1 CS 125 Introduction to Computers and Object- Oriented Programming.
Computers: Tools for an Information Age
Computer Programming How Can You Create Your Own Software? Chapter 11.
CS101- Lecture 11 CS101 Fall 2004 Course Introduction Professor Douglas Moody –Monday – 12:00-1:40 – – –Web Site: websupport1.citytech.cuny.edu.
Java Programming, 3e Concepts and Techniques Chapter 1 An Introduction to Java and Program Design.
© 2003 The McGraw-Hill Companies, Inc. All rights reserved. Net Present Value and Other Investment Criteria Chapter Nine.
© 2003 The McGraw-Hill Companies, Inc. All rights reserved. Short-Term Finance and Planning Chapter Nineteen.
© 2003 The McGraw-Hill Companies, Inc. All rights reserved. Determining the Target Cash Balance Chapter Twenty A.
Your Interactive Guide to the Digital World Discovering Computers 2012 Chapter 13 Computer Programs and Programming Languages.
© 2003 The McGraw-Hill Companies, Inc. All rights reserved. Long-Term Financial Planning and Growth Chapter Four.
© 2003 The McGraw-Hill Companies, Inc. All rights reserved. Interest Rates and Bond Valuation Chapter Seven.
Chapter 2: Developing a Program Extended and Concise Prelude to Programming Concepts and Design Copyright © 2003 Scott/Jones, Inc.. All rights reserved.
Chapter 1 Program Design
© 2003 The McGraw-Hill Companies, Inc. All rights reserved. Option Valuation Chapter Twenty- Four.
©The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 4 th Ed Chapter Chapter 1 Introduction to Object-Oriented Programming.
Copyright © 2006 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill Technology Education Copyright © 2006 by The McGraw-Hill Companies,
Programming and Languages Chapter Competencies (Page 1 of 2) Describe the six steps of programming Discuss design tools including top-down design,
McGraw-Hill Technology Education © 2006 by the McGraw-Hill Companies, Inc. All rights reserved CHAPTER PROGRAMMING AND LANGUAGES.
1414 CHAPTER PROGRAMMING AND LANGUAGES. © 2005 The McGraw-Hill Companies, Inc. All Rights Reserved Competencies Describe the six steps of programming.
1 Design and Analysis of Algorithms تصميم وتحليل الخوارزميات (311 عال) Chapter 1 Introduction to Algorithms.
Programming Paradigms Imperative programming Functional programming Logic programming Event-driven programming Object-oriented programming A programming.
Microsoft Visual Basic 2005 CHAPTER 1 Introduction to Visual Basic 2005 Programming.
Chapter 13 Programming Languages and Program Development 1.
Java Programming, 2E Introductory Concepts and Techniques Chapter 1 An Introduction to Java and Program Design.
Programming Languages: Telling the Computers What to Do Chapter 16.
COMPUTER PROGRAMMING Source: Computing Concepts (the I-series) by Haag, Cummings, and Rhea, McGraw-Hill/Irwin, 2002.
CHAPTER ONE Problem Solving and the Object- Oriented Paradigm.
Python Mini-Course University of Oklahoma Department of Psychology Day 2 – Lesson 6 Program Design 4/18/09 Python Mini-Course: Day 2 - Lesson 6 1.
CMPE13Cyrus Bazeghi 1 Programming Languages Telling computers what to do.
Computer Concepts 2014 Chapter 12 Computer Programming.
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Chapter 2.
Computer Programs and Programming Languages What are low-level languages and high-level languages? High-level language Low-level language Machine-dependent.
Introduction CS 3358 Data Structures. What is Computer Science? Computer Science is the study of algorithms, including their  Formal and mathematical.
Chapter 2 Problem Solving On A Computer 2.1 Problem Solving Steps Solving a problem on a computer requires steps similar to those followed when solving.
Problem Solving Techniques. Compiler n Is a computer program whose purpose is to take a description of a desired program coded in a programming language.
The Programming Process Define the problem* Make or buy software? Design the program * Code (write) the program Test (debug) the program Document the.
Definition of Object - Oriented Language.. Object-oriented programming (OOP) is a programming language model organized around "objects" rather than "actions"
Developing Business/IT Solutions Chapter 12 McGraw-Hill/IrwinCopyright © 2011 by The McGraw-Hill Companies, Inc. All rights reserved.
McGraw-Hill/Irwin The Interactive Computing Series © 2002 The McGraw-Hill Companies, Inc. All rights reserved. Microsoft Word 2002 Using Character Styles.
Programming and Languages
McGraw-Hill/Irwin Copyright © 2013 by The McGraw-Hill Companies, Inc. All rights reserved. Chapter 12 Implementing Business/IT Solutions.
Chapter 14 Programming and Languages McGraw-Hill/Irwin Copyright © 2008 by The McGraw-Hill Companies, Inc. All rights reserved.
Data Structure Introduction Dr. Bernard Chen Ph.D. University of Central Arkansas Fall 2010.
Problem-solving with Computers. 2Outline  Computer System  5 Steps for producing a computer program  Structured program and programming  3 types of.
Chapter 2 Principles of Programming and Software Engineering.
Lecture #1: Introduction to Algorithms and Problem Solving Dr. Hmood Al-Dossari King Saud University Department of Computer Science 6 February 2012.
McGraw-Hill/Irwin © 2003 The McGraw-Hill Companies, Inc., All Rights Reserved. Example 1-Ad A.
Program Design. Simple Program Design, Fourth Edition Chapter 1 2 Objectives In this chapter you will be able to: Describe the steps in the program development.
Problem Solving.  Similar to Solving Math Word Problem  Read the Problem  Decide how to go about Solving the Problem  Solve the Problem  Test the.
CHAPTER NINE Accessing Data Using XML. McGraw Hill/Irwin ©2002 by The McGraw-Hill Companies, Inc. All rights reserved Introduction The eXtensible.
How Computers Solve Problems Computers also use Algorithms to solve problems, and change data into information Computers can only perform one simple step.
Visual Basic.NET Comprehensive Concepts and Techniques Chapter 1 An Introduction to Visual Basic.NET and Program Design.
Your Interactive Guide to the Digital World Discovering Computers 2012 Chapter 13 Computer Programs and Programming Languages.
1-1 Logic and Syntax A computer program is a solution to a problem.
An Introduction to Visual Basic .NET and Program Design
Programming Right from the Start with Visual Basic .NET 1/e
Basic Concepts of Algorithm
Presentation transcript:

CHAPTER ONE Problem Solving and the Object- Oriented Paradigm

McGraw-Hill/Irwin ©2002 by The McGraw-Hill Companies, Inc. All rights reserved Objectives Understand problem-solving concepts. Formulate algorithms using pseudocode. Realize the complexity writing algorithms. Understand an event-driven environment. Understand basic concepts of classes and objects.

McGraw-Hill/Irwin ©2002 by The McGraw-Hill Companies, Inc. All rights reserved Problem Solving Use computer software to help solve problems. –Sample Problem Problem Description –Find the largest number in the set of numbers. Describing Your Solution –Solve the problem yourself. –Formulate your solution approach. –Translate your solution.

McGraw-Hill/Irwin ©2002 by The McGraw-Hill Companies, Inc. All rights reserved Problem Solving (cont.) Pseudocode (false code) is an outline style used to document the solution to a program. Algorithm is the formal term for the set of steps used to solve a problem.

McGraw-Hill/Irwin ©2002 by The McGraw-Hill Companies, Inc. All rights reserved Problem Solving (cont.) Algorithms –A set of ordered steps for solving a problem, such as a mathematical formula or the instructions in a program. The terms algorithm and logic are synonymous. Both refer to a sequence of steps to solve a problem. Taken from TechEncyclopedia.com.

McGraw-Hill/Irwin ©2002 by The McGraw-Hill Companies, Inc. All rights reserved Problem Solving (cont.) Getting Data and Displaying Results –Most algorithms need data. –You must be able to display the results of an algorithm. –Input data must be accurate. –Algorithm results range from simple to complex.

McGraw-Hill/Irwin ©2002 by The McGraw-Hill Companies, Inc. All rights reserved Problem Solving (cont.) Getting Data and Displaying Results (cont.) –Major Tasks of a Computer-Base Solution Write appropriate computer code to accept and validate data. Write appropriate computer code to implement the algorithm. Write appropriate code to format the results.

McGraw-Hill/Irwin ©2002 by The McGraw-Hill Companies, Inc. All rights reserved The Event-Driven Problem- Solving Environment Most of today’s computer applications are event driven. Helps developer organize a solution into small segments of code. One organizes a solution around a series of events.

McGraw-Hill/Irwin ©2002 by The McGraw-Hill Companies, Inc. All rights reserved Using the Object-Oriented Paradigm in Problem Solving Classes and Objects –Payroll System problem. –Procedural programming has separate data and program logic. –Object-oriented programming (OOP) combines the data and program logic. –Methods describe the behavior associated with an object. –Encapsulates means an object holds in its capsule both data and behavior.

McGraw-Hill/Irwin ©2002 by The McGraw-Hill Companies, Inc. All rights reserved Using the Object-Oriented Paradigm in Problem Solving (cont.) –A class is a definition or template that defines how objects are created. –An instance of a class is another name for an object. –Special methods known as classes methods may be accessed by a class. –Each object instantiated from a class has identical data elements and methods.

McGraw-Hill/Irwin ©2002 by The McGraw-Hill Companies, Inc. All rights reserved Microsoft Visual Basic.NET A Rapid Application Development (RAD) environment Supports object-oriented paradigm