Presentation is loading. Please wait.

Presentation is loading. Please wait.

Examples of Structure Charts

Similar presentations


Presentation on theme: "Examples of Structure Charts"— Presentation transcript:

1 Examples of Structure Charts
Etter, Engineering Problem Solving with C, Third Edition, © 2005 Pearson Education, Inc. All rights reserved X

2 Example of Structure Chart
Etter, Engineering Problem Solving with C, Third Edition, © 2005 Pearson Education, Inc. All rights reserved X

3 /* This function returns the maximum */ /* of two integer values */
int max(int a, int b) { if (a > b) return a; else return b; } Etter, Engineering Problem Solving with C, Third Edition, © 2005 Pearson Education, Inc. All rights reserved X

4 #include <stdio.h> int Count = 0; … int main(void) {
int x, y, z; } int calc(int a, int b) int x; extern int count; int check(int sum) Etter, Engineering Problem Solving with C, Third Edition, © 2005 Pearson Education, Inc. All rights reserved X

5 #define degrees1_F(x) ((x)*(9.0/5.0) + 32)
max_temp1 = degrees1_F(temp); max_temp2 = degrees2_F(temp); max_temp1 = ((temp)*(9.0/5.0) + 32); max_temp2 = temp * (9.0/5.0) + 32; max_temp1 = degrees1_F(temp+10); max_temp2 = degrees2_F(temp+10); max_temp1 = ((temp+10)*(9.0/5.0) + 32); max_temp2 = temp+10 * (9.0/5.0) + 32; Etter, Engineering Problem Solving with C, Third Edition, © 2005 Pearson Education, Inc. All rights reserved X

6 Sinc Function for [-6,6] Etter, Engineering Problem Solving with C, Third Edition, © 2005 Pearson Education, Inc. All rights reserved X

7 Sinc Function for Four Intervals
Etter, Engineering Problem Solving with C, Third Edition, © 2005 Pearson Education, Inc. All rights reserved X

8 Rectangular Coordinate System for the Earth
Etter, Engineering Problem Solving with C, Third Edition, © 2005 Pearson Education, Inc. All rights reserved X

9 Spherical Coordinate System
Etter, Engineering Problem Solving with C, Third Edition, © 2005 Pearson Education, Inc. All rights reserved X

10 Series and Parallel Configurations
Etter, Engineering Problem Solving with C, Third Edition, © 2005 Pearson Education, Inc. All rights reserved X

11 Polynomial with Two Real Roots
Etter, Engineering Problem Solving with C, Third Edition, © 2005 Pearson Education, Inc. All rights reserved X

12 Cubic Polynomials Etter, Engineering Problem Solving with C, Third Edition, © 2005 Pearson Education, Inc. All rights reserved X

13 Incremental Search for Root
Etter, Engineering Problem Solving with C, Third Edition, © 2005 Pearson Education, Inc. All rights reserved X

14 Subinterval Analysis Etter, Engineering Problem Solving with C, Third Edition, © 2005 Pearson Education, Inc. All rights reserved X

15 Subinterval Analysis Etter, Engineering Problem Solving with C, Third Edition, © 2005 Pearson Education, Inc. All rights reserved X

16 Parameters of a Triangle
Etter, Engineering Problem Solving with C, Third Edition, © 2005 Pearson Education, Inc. All rights reserved X

17 Configuration 1 Etter, Engineering Problem Solving with C, Third Edition, © 2005 Pearson Education, Inc. All rights reserved X

18 Configuration 2 Etter, Engineering Problem Solving with C, Third Edition, © 2005 Pearson Education, Inc. All rights reserved X

19 Configuration 3 Etter, Engineering Problem Solving with C, Third Edition, © 2005 Pearson Education, Inc. All rights reserved X

20 Simulated Wind Speed Etter, Engineering Problem Solving with C, Third Edition, © 2005 Pearson Education, Inc. All rights reserved X

21 Simulated Wind Speeds with Three Storms
Etter, Engineering Problem Solving with C, Third Edition, © 2005 Pearson Education, Inc. All rights reserved X

22 Simulated Wind Speeds with a Microburst
Etter, Engineering Problem Solving with C, Third Edition, © 2005 Pearson Education, Inc. All rights reserved X

23 Straight Line Intersection in (a,b)
Etter, Engineering Problem Solving with C, Third Edition, © 2005 Pearson Education, Inc. All rights reserved X


Download ppt "Examples of Structure Charts"

Similar presentations


Ads by Google