Presentation is loading. Please wait.

Presentation is loading. Please wait.

Copyright © 2012 Pearson Education, Inc. Chapter 2 Beginning Problem-Solving Concepts for the Computer Problem Solving and Programming Concepts 9 th Edition.

Similar presentations


Presentation on theme: "Copyright © 2012 Pearson Education, Inc. Chapter 2 Beginning Problem-Solving Concepts for the Computer Problem Solving and Programming Concepts 9 th Edition."— Presentation transcript:

1 Copyright © 2012 Pearson Education, Inc. Chapter 2 Beginning Problem-Solving Concepts for the Computer Problem Solving and Programming Concepts 9 th Edition By Maureen Sprankle and Jim Hubbard

2 Copyright © 2012 Pearson Education, Inc. 0-2 Overview Constants and Variables Data Types How the Computer Stores Data Functions Operators Expressions and EquationsBullet, etc

3 Copyright © 2012 Pearson Education, Inc. Figure 2.1 Important Concepts to Learn 0-3

4 Copyright © 2012 Pearson Education, Inc. Table 2.1 Constants and Variables on the Computer 0-4

5 Copyright © 2012 Pearson Education, Inc. Table 2.1 Constants and Variables on the Computer 0-5

6 Copyright © 2012 Pearson Education, Inc. Rules for Naming and Using Variables 1.Name a variable according to what it represents. 2.Do not use spaces. 3.Start a variable name with a letter. 4.Do not use a dash or any other symbol that is used as a mathematical operator. 0-6

7 Copyright © 2012 Pearson Education, Inc. Rules for Naming and Using Variables 5.Consistent usage of variable name. 6.Consistent use of upper, lowercase characters in variable names 7.Use naming convention specified by your company 0-7

8 Copyright © 2012 Pearson Education, Inc. Table 2.2 Incorrect Variable Names 0-8

9 Copyright © 2012 Pearson Education, Inc. Figure 2.2 Processing Data—How a Computer Balances a Checkbook 0-9

10 Copyright © 2012 Pearson Education, Inc. Table 2.3 Data Types and Their Data Sets 0-10

11 Copyright © 2012 Pearson Education, Inc. Table 2.4 Examples of Data Types 0-11

12 Copyright © 2012 Pearson Education, Inc. Table 2.4 Examples of Data Types 0-12

13 Copyright © 2012 Pearson Education, Inc. Table 2.5 Functions 0-13

14 Copyright © 2012 Pearson Education, Inc. Table 2.5 Functions 0-14

15 Copyright © 2012 Pearson Education, Inc. Table 2.5 Functions 0-15

16 Copyright © 2012 Pearson Education, Inc. Table 2.5 Functions 0-16

17 Copyright © 2012 Pearson Education, Inc. Table 2.6 Operators and Their Computer Symbols 0-17

18 Copyright © 2012 Pearson Education, Inc. Table 2.6 Operators and Their Computer Symbols 0-18

19 Copyright © 2012 Pearson Education, Inc. Table 2.7 Definitions of the Logical Operators 0-19

20 Copyright © 2012 Pearson Education, Inc. Table 2.7 Definitions of the Logical Operators 0-20

21 Copyright © 2012 Pearson Education, Inc. Table 2.7 Definitions of the Logical Operators 0-21

22 Copyright © 2012 Pearson Education, Inc. Table 2.8 Hierarchy of Operations 0-22

23 Copyright © 2012 Pearson Education, Inc. Table 2.8 Hierarchy of Operations 0-23

24 Copyright © 2012 Pearson Education, Inc. Table 2.9 Expressions and Equations 0-24

25 Copyright © 2012 Pearson Education, Inc. Evaluating a Mathematical Expression 0-25

26 Copyright © 2012 Pearson Education, Inc. Evaluating a Relational Expression 0-26

27 Copyright © 2012 Pearson Education, Inc. Evaluating a Logical Expression 0-27

28 Copyright © 2012 Pearson Education, Inc. Evaluating an Equation That Uses Both Relational and Logical Operators 0-28

29 Copyright © 2012 Pearson Education, Inc. Developing a Table of All Possible Resultants of a Logical Expression One unknown—A. Two combinations: A can be either True or False. 0-29

30 Copyright © 2012 Pearson Education, Inc. Developing a Table of All Possible Resultants of a Logical Expression Two unknowns—A and B. Four combinations: B can be either True or False for each value of A.. 0-30

31 Copyright © 2012 Pearson Education, Inc. Developing a Table of All Possible Resultants of a Logical Expression Three unknowns—A, B, and C. Eight combinations. 0-31

32 Copyright © 2012 Pearson Education, Inc. Developing a Table of All Possible Resultants of a Logical Expression 0-32


Download ppt "Copyright © 2012 Pearson Education, Inc. Chapter 2 Beginning Problem-Solving Concepts for the Computer Problem Solving and Programming Concepts 9 th Edition."

Similar presentations


Ads by Google