1. Trang chủ
  2. » Công Nghệ Thông Tin

Lecture Introduction to Computers: Chapter 13A - Peter Norton''s

32 62 0

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

THÔNG TIN TÀI LIỆU

Cấu trúc

  • Slide 1

  • Chapter 13A

  • What Is a Computer Program?

  • Software Is Stored In Many Files

  • Slide 5

  • Slide 6

  • Slide 7

  • Slide 8

  • Hardware/Software Interaction

  • Slide 10

  • Writing Code

  • Slide 12

  • Slide 13

  • Slide 14

  • Slide 15

  • Slide 16

  • Planning a Computer Program

  • Planning Tools

  • Slide 19

  • IPO Chart

  • How Programs Solve Problems

  • Slide 22

  • Flowchart

  • Slide 24

  • Structured Programming

  • Slide 26

  • Slide 27

  • Slide 28

  • Object Oriented Programming

  • Slide 30

  • Slide 31

  • Slide 32

Nội dung

Chapter 13A - Creating computer programs. This chapter define the term computer program, describe the use of flowcharts and pseudocode in programming, identify two ways in which a program can work toward a solution, differentiate the two main approaches to computer programming, list and describe three elements of object-oriented programming.

oblems • Heuristic – Set of steps – Solution is usually found – Solution may not be optimal – Used when algorithms fail • Algorithm is nonexistent or too complex – Appear in more complex applications • Data mining • Anti-virus software Structured Programming • • • • Programming using defined structures Creates easy to read code Programs are efficient and run fast Several defined structures Structured Programming • Sequence structure – Describes the flow of the program – Typically executed in order – Branching statements allow multiple flows Structured Programming • Selection statement – Also called conditional statement – Performs a true or false test – Determines which code to execute next Structured Programming • Repetition statements – Also called looping structures – Repeats a section of code • Until an exit condition is reached Object Oriented Programming • Also known as OOP • Enhances structured programming • Intuitive method of programming Object Oriented Programming • Code reuse – Code used in many projects – Speeds up program development – Simplifies program development Object Oriented Programming • Develops objects – All real world items are objects – OOP develops code versions – Contains data about the item – Contains functionality – Object encapsulates both into one package Chapter 13A End of Chapter McGraw­Hill Technology Education Copyright © 2006 by The McGraw­Hill Companies, Inc. All rights reserved ... Contains data about the item – Contains functionality – Object encapsulates both into one package Chapter 13A End of Chapter McGraw­Hill Technology Education Copyright © 2006 by The McGraw­Hill Companies, Inc. All rights reserved... statement – Also called conditional statement – Performs a true or false test – Determines which code to execute next Structured Programming • Repetition statements – Also called looping structures...Structured Programming • • • • Programming using defined structures Creates easy to read code Programs are efficient and run fast Several defined structures Structured Programming

Ngày đăng: 30/01/2020, 03:30

TỪ KHÓA LIÊN QUAN