**Published:** June 24, 2007

**By Richard G. Baldwin**

**Instructions for viewing slides**

File: Alice0160SlideIndex.htm

**Figures**

- Figure 1. Arithmetic operators.
- Figure 2. Arithmetic operators exposed.
- Figure 3. Two examples of mixed operator types.
- Figure 4. Equality operators.
- Figure 5. Illustration of "equal" and "not equal" operators.
- Figure 6. Output produced by the code in Figure 5.
- Figure 7. Illustration of "equal" and "not equal" operators.
- Figure 8. Output produced by the code in Figure 7.

**Slides**

- Alice0160aa Purpose of the lesson
- Alice0160ab Time to get our hands dirty
- Alice0160ac Material for future lessons
- Alice0160ad Expressions
- Alice0160ae Statements
- Alice0160af Sample statement
- Alice0160ag Operators
- Alice0160ah Operands
- Alice0160ai String concatenation
- Alice0160aj Unary, binary, and ternary operators
- Alice0160ak Some operators can be either unary or binary
- Alice0160al The minus sign as binary operator
- Alice0160am The minus sign as unary operator
- Alice0160an Binary operators use
*infix*notation - Alice0160ao
*Prefix*and*postfix*notation - Alice0160ap General behavior of an operator
- Alice0160aq Operator categories
- Alice0160ar Arithmetic operators
- Alice0160as Alice supports four of the five
- Alice0160at Using the arithmetic operators
- Alice0160au Producing Figure 2
- Alice0160av Producing Figure 2 (cont'd)
- Alice0160aw Mixing arithmetic operators
- Alice0160ax Mixing arithmetic operators (cont'd)
- Alice0160ay The effect of parentheses
- Alice0160az The effect of parentheses (cont'd)
- Alice0160ba Mixed-type arithmetic
- Alice0160bb Mixed-type arithmetic (cont'd)
- Alice0160bc Equality operators
- Alice0160bd An example of equality operators
- Alice0160be Performing operations on three variables
- Alice0160bf Evaluating the first expression
- Alice0160bg Evaluating the second expression
- Alice0160bh Modify values for A and B
- Alice0160bi Make certain that you understand the outcome
- Alice0160bj Lab project
- Alice0160bk What's next?

The above material corresponds to a particular tutorial lesson and consists of up to three separate lists: figures, program listings, and slides. . The figures and listings are provided mainly to support the slides, but they may be viewed separately if desired.

The slides are intended primarily for use by instructors during classroom lectures, but they are also useful as a quick review mechanism for students who have studied the corresponding tutorial lesson and who have mastered the corresponding practice test.

Each slide consists of HTML files and JPEG files. Therefore, you should not need any software other than the browser in which you are viewing this page to view the slides and to display them during your lectures. A very effective approach is to open this index page in one tab of a tabbed browser and to successively open each slide in another tab to display it for viewing by the class.

The slides are designed so that you should be able to display two slides side-by-side on a display with a resolution of 1024x768 pixels in two separate browser windows. This is useful for displaying the slide on one-half of the screen while displaying a figure or listing on the other half of the screen.

Copyright 2007, Richard G. Baldwin. Faculty and staff of public and private non-profit educational institutions are granted a license to reproduce and to use this material for purposes consistent with the teaching process. This license does not extend to commercial ventures. Otherwise, reproduction in whole or in part in any form or medium without express written permission from Richard Baldwin is prohibited.

*Richard has participated in numerous consulting projects and he
frequently provides onsite training at the high-tech companies located in and
around Austin, Texas. He is the author of Baldwin's Programming
Tutorials, which have gained a
worldwide following among experienced and aspiring programmers. He has also
published articles in JavaPro magazine.*

*In addition to his programming expertise, Richard has many years of
practical experience in Digital Signal Processing (DSP). His first job after he
earned his Bachelor's degree was doing DSP in the Seismic Research Department of
Texas Instruments. (TI is still a world leader in DSP.) In the following
years, he applied his programming and DSP expertise to other interesting areas
including sonar and underwater acoustics.*

*Richard holds an MSEE degree from Southern Methodist University and has
many years of experience in the application of computer technology to real-world
problems.*

-end-