CSC 160 Computer Programming for Non-Majors Syntax Rules Prof. Adam M. Wittenstein

Slides:



Advertisements
Similar presentations
Monomials Multiplying Monomials and Raising Monomials to Powers.
Advertisements

CSC 160 Computer Programming for Non-Majors Lecture #3a: Stepper, Words, Sentences (continued) Prof. Adam M. Wittenstein
CSC 160 Computer Programming for Non-Majors Lecture #9: Booleans Prof. Adam M. Wittenstein
CSC 160 Computer Programming for Non-Majors Lecture #4: Defining Variables Prof. Adam M. Wittenstein
CSC 160 Computer Programming for Non-Majors Images: Another Form of Symbolic Data Prof. Adam M. Wittenstein
CSC 160 Computer Programming for Non-Majors Lecture #5c: Functions with Images Prof. Adam M. Wittenstein
CSC 160 Computer Programming for Non-Majors Lecture #5: Defining Functions Prof. Adam M. Wittenstein
CSC 160 Computer Programming for Non-Majors Chapter 2: Numbers, Expressions, and Simple Programs Prof. Adam M. Wittenstein
CSC 160 Computer Programming for Non-Majors Chapter 6: Structures Prof. Adam M. Wittenstein
CSC 160 Computer Programming for Non-Majors Lecture #3: Calling Functions Prof. Adam M. Wittenstein
CSC 160 Computer Programming for Non-Majors Lecture #3c: Working with Pictures (continued) Prof. Adam M. Wittenstein
CSC 160 Computer Programming for Non-Majors Draft Chapter: The UFO Example Prof. Adam M. Wittenstein
4/16/2007Declare a DTD File II1 Declare A DTD File - II.
CSC 160 Computer Programming for Non-Majors Lecture #10: Conditionals I Prof. Adam M. Wittenstein
CSC 160 Computer Programming for Non-Majors Section 1.2: Drawing a UFO Prof. Adam M. Wittenstein
CSC 160 Computer Programming for Non-Majors Chapter 4: Conditional Expressions and Functions Prof. Adam M. Wittenstein
CSC 160 Computer Programming for Non-Majors Lecture #5b: Designing Programs Prof. Adam M. Wittenstein
CSC 160 Computer Programming for Non-Majors Lecture #7: Variables Revisited Prof. Adam M. Wittenstein
CSC 160 Computer Programming for Non-Majors Chapter 3: Programs are Functions Plus Variable Definitions Prof. Adam M. Wittenstein
CSC 160 Computer Programming for Non-Majors Lecture #2: What are Functions? Prof. Adam M. Wittenstein
CSC 160 Computer Programming for Non-Majors Lecture #3a: Stepper, Words, Sentences Prof. Adam M. Wittenstein
CSC 160 Computer Programming for Non-Majors Lecture #5a: Defining Functions on Words and Sentences Prof. Adam M. Wittenstein
CSC 160 Computer Programming for Non-Majors Lecture #6: Function Composition Prof. Adam M. Wittenstein
CSC 160 Computer Programming for Non-Majors Lecture #3b: Working with Pictures Prof. Adam M. Wittenstein
CSC 160 Computer Programming for Non-Majors Lecture #5 (continued): More on Writing Functions Prof. Adam M. Wittenstein
CSC 160 Computer Programming for Non-Majors Lecture #12: Syntax and Semantics Prof. Adam M. Wittenstein
Order of Operations Chapter 1 Section 2 Part 1 and Part 2.
Prime Factor and GCF. Vocab Prime number - # > 1 whose factors are only 1 and itself Composite number - # > 1 that has more than 2 factors Prime factorization.
Prime Numbers A whole number greater than 1 whose only whole number factors are 1 and itself
computer
CSC 160 Computer Programming for Non-Majors Chapter 8: Scheme Language Review Prof. Adam M. Wittenstein
FILE MANAGEMENT & MICROSOFT WORD TEST REVIEW. WHICH DRIVE IS CONSIDERED YOUR EVHS CAMPUS NETWORK DRIVE? H:
Prog. techniques. Standard prog. techniques Complex programs can be broken down into simpler parts called “Modules” These come in 2 types,“Procedures”
Copyright © 2010 Pearson Education, Inc. All rights reserved Sec
Web Development in Microsoft Visual Studio 2013 / 2015.
Source Page US:official&tbm=isch&tbnid=Mli6kxZ3HfiCRM:&imgrefurl=
12.01 Multiplying Monomials. A monomial is a number, a variable, or a product of both. Examples: 8, x, 5y, x 3, 4x 2, – 6xy 7 Exponential Notation amam.
11.3 Solving Radical Equations Definitions & Rules Simplifying Radicals Practice Problems.
Tips: 1. To insert your picture, click “Insert” –> “Picture”, select picture from your computer. (or just click the icon in the middle of page.) You can.
Silberschatz and Galvin  C Programming Language Decision making in C Kingdom of Saudi Arabia Ministry of Higher Education Al-Majma’ah University.
Solving Systems by Substitution (isolated) Solving Systems by Substitution (not isolated)
Путешествуй со мной и узнаешь, где я сегодня побывал.
DIVISIBILITY RULES. A number is divisible by: If the number ends in 0 the number is also divisible by 2 and 3 the sum of the number's digits.
Lesson 4.8 Scientific Notation Pages
1.1 Evaluate Expressions.
Exponent Rules.
Algebra 1 Section 2.3 Subtract real numbers
7.2 Multiplying and Dividing Radical Expressions
Page 1. Page 2 Page 3 Page 4 Page 5 Page 6 Page 7.
Racket Introduction CSC270 Pepper
3-2: Solving Systems of Equations using Substitution
3-2: Solving Systems of Equations using Substitution
Warm-Up: As a group, create a CIRCLE MAP to DESCRIBE what you already know about ABSOLUTE VALUE.
Which description shows the relationship between a
3-2: Solving Systems of Equations using Substitution
An algebraic expression that defines a function is a function rule.
READY?.
Area as the Limit of a Sum
100 Entrepreneurs that Changed the World
Warm-Up Solve the system by graphing..
3-2: Solving Systems of Equations using Substitution
Warm Up Check to see if the point is a solution for the
I can Identify Numerical and Variable Expressions
3-2: Solving Systems of Equations using Substitution
3-2: Solving Systems of Equations using Substitution
3-2: Solving Systems of Equations using Substitution
3-2: Solving Systems of Equations using Substitution
Roots, Radicals, and Root Functions
Evaluating an expression with one variable
Lesson 3.3 Writing functions.
Presentation transcript:

CSC 160 Computer Programming for Non-Majors Syntax Rules Prof. Adam M. Wittenstein

Syntax Rules # Any picture is a legal expression; its value is itself. 2. A legal expression is the following in the given order: --a left-parenthesis --a function name --one or more legal expressions --a right-parenthesis Its value is the resulting picture (what you get by applying the named function to the values of the smaller expressions inside it).

Syntax Rule #3 ► Any identifier, if already defined, is a legal expression. *In an empty DrRacket file, ball is not a legal expression. *In a file containing (define ball ), ball is a legal expression.

Syntax Rule #4: Defining a Variable ► To define a variable: (define var-name its-value) ► That is, a legal expression is: a left-parenthesis, then the word define, then a previously-undefined name, then a legal expression, then a right-parenthesis.

Syntax Rule #5 ► As described in words on page 63, to define a function, you need to type: (define (func-name param-name …) expression)) expression)) ► The first one, func-name, needs to be an identifier that has not been used before. ► The others, param-names, can be any identifier, as long as you do not use the same one twice in the same function.