Programming Language Features Syntax Semantics. Syntax Diagram.

Slides:



Advertisements
Similar presentations
Your book A template A stick of glue Scissors Pencil crayons- blue and brown A pen.
Advertisements

This will be your summary section.
Origami Bookmark Your paper should look like a square.
Lecture 2.5 Top Down Design. © 2006 Pearson Addison-Wesley. All rights reserved Therefore, problems must often be broken into small parts. Then.
35 Notes Over Drawing a Diagram
Creating a Chartres Labyrinth 11 Steps to reproducing your own Chartres Labyrinth.
Biological Drawings (5)
Presentation Rules Maths Faculty _ _ _ _ _ _ _ School.
The Object of Java Spring 2003 Wayne State College CSC 340 Lect. #1.
TRANSFORMATIONS Reflections Rotations Enlargements Translations.
Problem of the Day Problem of the Day next Geometry - Connect the Dots
Orthographic Projection
USE A SHEET OF LINED PAPER AND FOLLOW THE INSTRUCTIONS PLEASE NOTE: We are using lined paper to make the drawings easier for you. 1.DRAW A HORIZONTAL.
Skimmer Folding Instructions
Stem and Leaf Displays  Are devices used to organize and group data without losing the data. The actual data forms the display.
What is the first line of the backwards direction of this proof? 1.Assume G is a block. 2.Assume every pair of vertices lie on a common cycle. 3.Assume.
(2.1) Grammars  Definitions  Grammars  Backus-Naur Form  Derivation – terminology – trees  Grammars and ambiguity  Simple example  Grammar hierarchies.
Graphics Images – PictureBox control Drawing graphics - Graphics object Multimedia controls PictureBox control Image property – select image Choose how.
Objective: Learn to Display and Analyze Stem-and-leaf diagrams.
Object-Oriented Programming in Java. Object-Oriented Programming Objects are the basic building blocks in an O-O program. – A program consists of one.
Object-Oriented Programming (OOP). Implementing an OOD in Java Each class is stored in a separate file. All files must be stored in the same package.
Lecture 8 Tree.
What is an international student? Does it mean that you come from a particular part of the world, or do not come from a particular part of the world?
Java is an object oriented programming language In this model of programming all entities are objects that have methods and fields Methods perform tasks.
© 2006 Pearson Addison-Wesley. All rights reserved A DrawingGizmo object can be moved around a window to draw lines. It appears like an arrow. (See.
How to draw a Geometric Tessellation by Ms. Day
Chapter 16 Drawing Elevations Multiview projection Also called orthographic projection Front elevation Six views in a multiview drawing Rear elevation.
Rotate each shape as described in the diagram. What letter do you get?
Rules for Lab Drawings. Use white, unlined paper. Always use a pencil and erase all changed work. Never use ink.
Making a timeline A timeline shows a graphic representation, or picture, of chronology. Making a timeline lets you understand and remember a sequence of.
Bottom-Up Parsing David Woolbright. The Parsing Problem Produce a parse tree starting at the leaves The order will be that of a rightmost derivation The.
© 2006 Pearson Addison-Wesley. All rights reserved DrawingGizmo « constructor » DrawingGizmo() « update » void moveForward() void turnClockwise()
Chapter 3 : Top Down Design with Functions By Suraya Alias.
Lecture 3.1 Using Graphics with JFrame. © 2006 Pearson Addison-Wesley. All rights reserved javax.swing.JFrame - int x - int y - int width - int.
© 2006 Pearson Addison-Wesley. All rights reserved Non-void Methods Parameters are largely one-way communication.  Shared instances variables is.
How to draw a Geometric Tessellation by Ms. Day Lesson 1: 4 sided polygons (grid) Lesson 2: Basic tessellations Lesson 3: Drawing in Word.
Opening Activity #1 Turn in your Are You Ready?. #2 Have a pencil out & complete your progress tracker for your Ch. 7 pretest. #3 Go to xtramath.org and.
Significant Figures Box and Dot Method. Step 1  Draw a box around all nonzero digits, beginning with the leftmost nonzero digit and ending with the rightmost.
Prime & Composite Numbers Prime & Composite Numbers © Math As A Second Language All Rights Reserved 4.OA#4.
CSE 3302 Programming Languages
How to produce Isometric drawings
Significant Figures Box and Dot Method.
Introduction to the Microscope
CS510 Compiler Lecture 4.
Interior Design Floor Plans And Elevations.
The Need for Specifications
2 point perspective.
Evaluate Logarithms and Graph Logarithmic Functions
Addition Grids.
Finding the slope of a line using a graph
How-to complete the Design Notebook
Page 48 should be set up and should look JUST LIKE THIS
Perspective Perspective: The appearance of things in relation to one another. © F Winkworth 2008.
Technological Design Technical Drawing.
Multiplication Grids.
No spiral? Get out a sheet of paper to take notes
Rotations.
Step 1 On the front cover, use a pen to write your first and last name and “English Language Arts”
Subtraction Grids.
Rotations.
7.3 Tree Searching.
Electronic Memory.
Pearson Unit 2 Topic 8: Transformational Geometry 8-4: Symmetry Pearson Texas Geometry ©2016 Holt Geometry Texas ©2007.
The Tripartite System and Comprehensivisation
Determine which rocket will go the highest
Interactive Notebook This is where you will keep almost everything for this class. After the midterm, you will start a new notebook. Let’s set it up!
LANGUAGE EDUCATION.
Rotations.
SPRING TIME LINE RUBRIC
VOYAGES OF DISCOVERY MAP RUBRIC
Presentation transcript:

Programming Language Features Syntax Semantics

Syntax Diagram

Drawing Gizmo Example // Example program with parameters that displays a T // The T is drawn by the method drawT public class Driver { private DrawingGizmo pencil; public void drawT() { //Draws a letter T //PRE: Assumes the current position of the pen is the // leftmost postion of the top of the T and the direction // of the pen is 0 degrees //POST: The method leaves the pen at the rightmost // position of the top of the T and the direction of the // pen is 0 degrees pencil.draw(); pencil.turnBy(90); pencil.moveBy(80);

Drawing Gizmo Example //Move the pen to the middle of the top of the T pencil.dontDraw(); pencil.turnBy(-180); pencil.moveBy(40); //Draw the vertical part of the T pencil.draw(); pencil.turnBy(-90); pencil.moveBy(120); //Move pen to the rightmost position of the top of the T //leave the direction of the pen at 0 degrees pencil.dontDraw(); pencil.turnBy(180); pencil.moveBy(120); pencil.turnBy(90); pencil.moveBy(40); pencil.turnBy(-90); }

Drawing Gizmo Example public Driver() { pencil = new DrawingGizmo(); //Move the pen to the left pencil.dontDraw(); pencil.turnBy(-90); pencil.moveBy(80); pencil.turnBy(90); drawT(); }