Presentation is loading. Please wait.

Presentation is loading. Please wait.

Chapter 7 Introduction to High-Level Language Programming.

Similar presentations


Presentation on theme: "Chapter 7 Introduction to High-Level Language Programming."— Presentation transcript:

1 Chapter 7 Introduction to High-Level Language Programming

2 High Level Languages – Figure 7.1 Transitions of a High-Level Language Program

3 Virtual Data Storage – Figure 7.6 A 12-Element Array Hits

4 Virtual Data Storage – Figure 7.7 A Virtual 2 x 3 Table

5 Virtual Data Storage – Figure 7.7 The 2 x 3 Table Stored In Memory

6 Control Statements – Figure 7. 9 Sequential Flow of Control

7 Control Statements – Figure 7. 12 Conditional Flow of Control (If-Else)

8 Control Statements – Figure 7. 13 If-Else with Empty Else

9 Control Statements – Figure 7. 14 While Loop

10 Meeting Expectations – Figure 7.20 - Each Target Machine Has a Separate Compiler

11 Meeting Expectations – Figure 7.21 – Java Compiler, Java Bytecode Interpreters

12 Managing Complexity – Figure 7.22A – Structure Charts

13 Managing Complexity – Figure 7.22B – Structure Charts

14 Managing Complexity – Figure 7.23 Methods In The Circle Class

15 Object-Oriented Programming – Figure 7.30 The PIE of OOP

16 Java and OOP – Figure 7.34 – A Hierarchy of Geometric Classes

17 Graphical Programming - The Importance of Visualization

18 Graphical Programming – Figure 7. 36 Visualization of a Three-Dimensional Surface

19 Graphic Primitives – Figure 7.37 - Pixel Numbering System in a Bit Mapped Display

20 Graphic Primitives – Figure 7. 38 - Displaying of Information on the Terminal

21 7.9.3 Graphics Software – A Window or a Frame in Java

22 A DrawLine (int x1, int y1, int x 2, int y 2). This Draws A Straight Line From Point (x1, y1) On The Screen To Point (x2, y2.)

23 Graphics Software– Command: drawLine (1,1,4,4); Sets Four Pixels in the Frame Buffer

24 Graphic Software– Using Command drawOval (int x, int y, int width, int height). This Draws an Oval Within a Rectangle

25 Graphics Software – No Entry Sign - Set Color Command From the Color Class

26 Graphics Software – Using Commands, drawOval, drawLine, and Set Color, We Can Change The Stop Sign

27 Graphics Software – Using Commands of drawString and drawLine Will Produce This Image.

28 Graphics Software – drawRoundRectangle (int x, int y, int width, int height, int arcWidth, int arcHeight).

29 Graphics Software – A Filled Shape Rather Than An Outline

30 Graphics Software – Using the Command of fillOval (80, 80, 300, 200) Note The Circle Is Outside The Window – This Is Called Clipping

31 Practice Problems – Write The Sequence of Commands to Draw The House On This Screen

32 Exercises – Given the Declaration int [ ] [ ] table = new int [5] [3]: How Would You Refer To This Marked Cell

33 Exercises – Using the drawLine Command Draw An Isosceles Triangle

34 Exercises – Create three labeled Rectangular Buttons

35 Exercises – Create the image of a “Teeter-Totter”


Download ppt "Chapter 7 Introduction to High-Level Language Programming."

Similar presentations


Ads by Google