© 2016, Mike Murach & Associates, Inc.

Slides:



Advertisements
Similar presentations
Murach’s ASP.NET 4/C#, C6© 2011, Mike Murach & Associates, Inc.Slide 1.
Advertisements

Murach’s C# 2010, C6 © 2010, Mike Murach & Associates, Inc.Slide 1.
Murach’s C# 2010, C3 © 2010, Mike Murach & Associates, Inc.Slide 1.
Murach’s ASP.NET 4/C#, C3© 2011, Mike Murach & Associates, Inc.Slide 1.
Murach’s ASP.NET 2.0/C#, C3© 2006, Mike Murach & Associates, Inc.Slide 1.
Murach's C# 2012, C3© 2013, Mike Murach & Associates, Inc.Slide 1.
Murach’s ASP.NET 4/C#, C2© 2011, Mike Murach & Associates, Inc.Slide 1.
Murach’s C# 2010, C1© 2010, Mike Murach & Associates, Inc.Slide 1.
© 2013, Mike Murach & Associates, Inc.
L2:CSC © Dr. Basheer M. Nasef Lecture #2 By Dr. Basheer M. Nasef.
Murach’s C# 2010, C4 © 2010, Mike Murach & Associates, Inc.Slide 1.
Murach’s ASP.NET 3.5/C#, C4© 2008, Mike Murach & Associates, Inc.Slide 1.
Murach’s Visual Basic 2008, C4© 2008, Mike Murach & Associates, Inc. Slide 1.
Chapter 3: Using Variables and Constants Programming with Microsoft Visual Basic 2005, Third Edition.
Lecture Set 4 Data Types and Variables Part B – Variables, Constants, Expressions Conversion Rules Options Strict, Option Explicit Scope of Definition.
Neal Stublen C# Data Types Built-in Types  Integer Types byte, sbyte, short, ushort, int, uint, long, ulong  Floating Point Types.
Expressions ► An expression can be a single variable, or can include a series of variables. If an expression includes multiple variables they are combined.
COMPSCI 125 Spring 2005 ©TheMcGraw-Hill Companies, Inc. Permission required for reproduction or display. Chapter 3: Numeric Data *Variables *Numeric data.
Chapter 3 Numerical Data. Topics Variables Numeric data types Assignment Expressions.
Variables, Constants, Methods, and Calculations Chapter 3 - Review.
Java Primitives The Smallest Building Blocks of the Language (corresponds with Chapter 2)
CHAPTER THREE Representing Data: Constants and Variables.
Chapter 3: Data Types and Operators JavaScript - Introductory.
Chapter 2 Basic Elements of Java. Chapter Objectives Become familiar with the basic components of a Java program, including methods, special symbols,
How to Work with Numeric and String Data
1 Do you have a CS account? Primitive types –“ building blocks ” for more complicated types Java is strongly typed –All variables in a Java program must.
Representing Data: Constants and Variables CHAPTER THREE Matakuliah: T0063 – Pemrograman Visual Tahun: 2009.
Microsoft Visual Basic 2005: Reloaded Second Edition Chapter 3 Variables, Constants, Methods, and Calculations.
Chapter 3 w Variables, constants, and calculations DIM statements - declaration temporary memory locations identifier, data type, scope data types - values.
Java Programming, Second Edition Chapter Two Using Data Within a Program.
Programming with Microsoft Visual Basic th Edition
Chapter 2 Murach's JavaScript and jQuery, C2© 2012, Mike Murach & Associates, Inc.Slide 1.
Murach, Chapter 5. Common Control Structures Selection: The IF statement Case: The Select Case statement Iteration: Loops 9/28/20082.
Microsoft Visual Basic 2012 CHAPTER FOUR Variables and Arithmetic Operations.
Chapter 4: Variables, Constants, and Arithmetic Operators Introduction to Programming with C++ Fourth Edition.
Chapter 5 Murach's JavaScript and jQuery, C1© 2012, Mike Murach & Associates, Inc.Slide 1.
Representing Data: Constants and Variables
© 2016, Mike Murach & Associates, Inc.
© 2016, Mike Murach & Associates, Inc.
© 2016, Mike Murach & Associates, Inc.
© 2015, Mike Murach & Associates, Inc.
© 2016, Mike Murach & Associates, Inc.
© 2016, Mike Murach & Associates, Inc.
© 2010, Mike Murach & Associates, Inc.
© 2016, Mike Murach & Associates, Inc.
Lecture Set 4 Data Types and Variables
Chapter 3: Understanding C# Language Fundamentals
Based on Murach’s Chapter 4
© 2010, Mike Murach & Associates, Inc.
© 2010, Mike Murach & Associates, Inc.
© 2010, Mike Murach & Associates, Inc.
© 2010, Mike Murach & Associates, Inc.
Variables and Arithmetic Operations
© 2010, Mike Murach & Associates, Inc.
© 2015, Mike Murach & Associates, Inc.
© 2010, Mike Murach & Associates, Inc.
© 2010, Mike Murach & Associates, Inc.
Module 2: Understanding C# Language Fundamentals
CIS16 Application Development Programming with Visual Basic
3-3 Side Effects A side effect is an action that results from the evaluation of an expression. For example, in an assignment, C first evaluates the expression.
© 2010, Mike Murach & Associates, Inc.
Data Types and Expressions
An Introduction to Programming with C++ Fifth Edition
© 2010, Mike Murach & Associates, Inc.
© 2010, Mike Murach & Associates, Inc.
Murach's JavaScript and jQuery (3rd Ed.)
Murach's JavaScript and jQuery (3rd Ed.)
Murach's JavaScript and jQuery (3rd Ed.)
Murach's JavaScript and jQuery (3rd Ed.)
Presentation transcript:

© 2016, Mike Murach & Associates, Inc. Chapter 4 © 2016, Mike Murach & Associates, Inc. Murach's C# 2015

© 2016, Mike Murach & Associates, Inc. Objectives © 2016, Mike Murach & Associates, Inc. Murach's C# 2015

© 2016, Mike Murach & Associates, Inc. Objectives (cont.) © 2016, Mike Murach & Associates, Inc. Murach's C# 2015

© 2016, Mike Murach & Associates, Inc. Objectives (cont.) © 2016, Mike Murach & Associates, Inc. Murach's C# 2015

The built-in value types © 2016, Mike Murach & Associates, Inc. Murach's C# 2015

The built-in value types (cont.) © 2016, Mike Murach & Associates, Inc. Murach's C# 2015

The built-in value types (cont.) © 2016, Mike Murach & Associates, Inc. Murach's C# 2015

How to declare and initialize a variable in two statements © 2016, Mike Murach & Associates, Inc. Murach's C# 2015

How to declare and initialize a variable in one statement © 2016, Mike Murach & Associates, Inc. Murach's C# 2015

How to declare and initialize a constant © 2016, Mike Murach & Associates, Inc. Murach's C# 2015

© 2016, Mike Murach & Associates, Inc. Arithmetic operators © 2016, Mike Murach & Associates, Inc. Murach's C# 2015

Arithmetic operators (cont.) © 2016, Mike Murach & Associates, Inc. Murach's C# 2015

Arithmetic expressions that use integers © 2016, Mike Murach & Associates, Inc. Murach's C# 2015

Arithmetic expressions that use decimals © 2016, Mike Murach & Associates, Inc. Murach's C# 2015

© 2016, Mike Murach & Associates, Inc. Assignment operators © 2016, Mike Murach & Associates, Inc. Murach's C# 2015

The syntax for a simple assignment statement © 2016, Mike Murach & Associates, Inc. Murach's C# 2015

Statements that use the same variable on both sides of the equals sign © 2016, Mike Murach & Associates, Inc. Murach's C# 2015

The order of precedence for arithmetic operations © 2016, Mike Murach & Associates, Inc. Murach's C# 2015

A calculation that uses the default order of precedence © 2016, Mike Murach & Associates, Inc. Murach's C# 2015

How implicit casting works © 2016, Mike Murach & Associates, Inc. Murach's C# 2015

How to code an explicit cast © 2016, Mike Murach & Associates, Inc. Murach's C# 2015

Five static methods of the Math class © 2016, Mike Murach & Associates, Inc. Murach's C# 2015

Statements that use static methods of the Math class © 2016, Mike Murach & Associates, Inc. Murach's C# 2015

Results from static methods of the Math class © 2016, Mike Murach & Associates, Inc. Murach's C# 2015

How to declare and initialize a string © 2016, Mike Murach & Associates, Inc. Murach's C# 2015

How to append one string to another string © 2016, Mike Murach & Associates, Inc. Murach's C# 2015

Common escape sequences © 2016, Mike Murach & Associates, Inc. Murach's C# 2015

Examples that use escape sequences © 2016, Mike Murach & Associates, Inc. Murach's C# 2015

Examples that use verbatim string literals © 2016, Mike Murach & Associates, Inc. Murach's C# 2015

Common .NET structures that define value types © 2016, Mike Murach & Associates, Inc. Murach's C# 2015

Common .NET classes that define reference types © 2016, Mike Murach & Associates, Inc. Murach's C# 2015

Common methods for data conversion © 2016, Mike Murach & Associates, Inc. Murach's C# 2015

Some of the static methods of the Convert class © 2016, Mike Murach & Associates, Inc. Murach's C# 2015

Statements that use ToString, Parse, and TryParse © 2016, Mike Murach & Associates, Inc. Murach's C# 2015

Conversion statements that use the Convert class © 2016, Mike Murach & Associates, Inc. Murach's C# 2015

Standard numeric formatting codes © 2016, Mike Murach & Associates, Inc. Murach's C# 2015

How to use the ToString method to format a number © 2016, Mike Murach & Associates, Inc. Murach's C# 2015

How to use the Format method of the String class to format a number © 2016, Mike Murach & Associates, Inc. Murach's C# 2015

Code that declares and uses variables with class scope © 2016, Mike Murach & Associates, Inc. Murach's C# 2015

© 2016, Mike Murach & Associates, Inc. How to work with scope © 2016, Mike Murach & Associates, Inc. Murach's C# 2015

Some of the constants in the FormBorderStyle enumeration © 2016, Mike Murach & Associates, Inc. Murach's C# 2015

The syntax for declaring an enumeration © 2016, Mike Murach & Associates, Inc. Murach's C# 2015

An enumeration that sets the constant values to 0, 1, and 2 © 2016, Mike Murach & Associates, Inc. Murach's C# 2015

Statements that use these enumerations © 2016, Mike Murach & Associates, Inc. Murach's C# 2015

How to declare a value type that can contain null values © 2016, Mike Murach & Associates, Inc. Murach's C# 2015

Two properties for working with nullable types © 2016, Mike Murach & Associates, Inc. Murach's C# 2015

How to check if a nullable type contains a value © 2016, Mike Murach & Associates, Inc. Murach's C# 2015

© 2016, Mike Murach & Associates, Inc. The Invoice Total form © 2016, Mike Murach & Associates, Inc. Murach's C# 2015

The controls that are referred to in the code © 2016, Mike Murach & Associates, Inc. Murach's C# 2015

The event handlers for the Invoice Total form © 2016, Mike Murach & Associates, Inc. Murach's C# 2015

The enhanced Invoice Total form © 2016, Mike Murach & Associates, Inc. Murach's C# 2015

The code for the class variables and two event handlers © 2016, Mike Murach & Associates, Inc. Murach's C# 2015

The class variables and event handlers (cont.) © 2016, Mike Murach & Associates, Inc. Murach's C# 2015

Extra 4-1 Calculate area and perimeter © 2016, Mike Murach & Associates, Inc. Murach's C# 2015

Extra 4-2 Accumulate test score data © 2016, Mike Murach & Associates, Inc. Murach's C# 2015