Constants, Variables and Data Types

Slides:



Advertisements
Similar presentations
What Are They? What Are They ?
Advertisements

WARM UP  Using the following table and y = mx + b;  1) What is the y?  2) What is the b? xy
State the domain and range of each function. 3.1 Graphs of Exponential Functions.
 Symbolic manipulation with artificial applications …  With little or no connection to the real world…
Computer Science: A Structured Programming Approach Using C1 Objectives ❏ To understand the structure of a C-language program. ❏ To write your first C.
UNIT 6.02 Tables of Values & Linear Equations I can identify the unit rate, display it in an x-y table, and write it in a linear equation.
The Data Element. 2 Data type: A description of the set of values and the basic set of operations that can be applied to values of the type. Strong typing:
Arithmetic Sequences. A sequence which has a constant difference between terms. The rule is linear. Example: 1, 4, 7, 10, 13,… (generator is +3) Arithmetic.
The Data Element. 2 Data type: A description of the set of values and the basic set of operations that can be applied to values of the type. Strong typing:
Java Primitives The Smallest Building Blocks of the Language (corresponds with Chapter 2)
1 Please switch off your mobile phones. 2 Data Representation Instructor: Mainak Chaudhuri
Holt Algebra Identifying Linear Functions Warm Up 1. Solve 2x – 3y = 12 for y. 2. Graph for D: {–10, –5, 0, 5, 10}.
CPS120: Introduction to Computer Science
Chapter 8 High-Level Programming Languages. 8-2 Chapter Goals Describe the translation process and distinguish between assembly, compilation, interpretation,
Selection Boolean What is Boolean ? Boolean is a set with only two values : –true –false true and false are standard identifiers in Pascal, called Boolean.
s  What is a variable?  What does it mean to substitute a number?  Why do we need variables to solve problems.
BATCH: BRANCH:- CSE 2 ND SEM. SUBMITTED BY:- GINNI.
Function Project By: Celeste Dart. My Real World Problem Amber and her 4 friends want to buy a Soda. A soda cost 1.00 for each person. How much does sodas.
INT213-Week-2 Working with Variables. What is variable
Domain & Range Domain & Range Algebra 1 By: A. C. Rivera.
WARM UP 1. Find the equation of the inverse relation for 2. Find for f(x) = 8x – 1. Switch y and x in y = 8x – 1 x = 8y – 1 x + 1 = 8y So.
Python Programming Lecture II. Data Data is the raw material that programs manipulate. Data comes in different flavours. The basic ones are called “primitive.
DATA TYPES, VARIABLES AND CONSTANTS. LEARNING OBJECTIVES  Be able to identify and explain the difference between data and information  Be able to identify,
Data Handling in Algorithms. Activity 1 Starter Task: Quickly complete the sheet 5mins!
Entry Task LT: I can identify and describe patterns.
Today we will solve equations with two variables. Solve = figure out.
Data Types Mr Tottman Link. Data Types Programs need to use data for calculations and for output to various devices The best programs will always use.
Chapter 2 Variables and Constants. Objectives Explain the different integer variable types used in C++. Declare, name, and initialize variables. Use character.
Programming revision Revision tip: Focus on the things you find difficult first.
Copyright © Texas Education Agency, Computer Programming Variables and Data Types.
Fundamentals 2.
7 - Programming 7J, K, L, M, N, O – Handling Data.
Unit 2 Technology Systems
Equations Quadratic in form factorable equations
Wel come.
What is it and how do I know when I see it?
Chapter 4: Decision Structures and Boolean Logic
Programming, Data & Testing
Introduction to the C Language
Complex Data Types One very important measure of the “goodness” of a PL is the capability of its data types to model the problem space variables Design.
Computers & Programming Languages
Section 7-5: Linear Inequalities
Honors Algebra II with Trigonometry Mrs. Stacey
Relational Operators Operator Meaning < Less than > Greater than
Number Systems.
Functions Introduction.
Chapter 2: Java Fundamentals
Objectives Identify linear functions and linear equations.
What is it and how do I know when I see it?
Chapter 2: Java Fundamentals
3.1 Graphing Linear Equations
Objectives Identify linear functions and linear equations.
B065: PROGRAMMING Variables 1.
The Data Element.
C# Revision Cards Data types
Equations Quadratic in form factorable equations
The Data Element.
Objectives Compare linear, quadratic, and exponential models.
Data Types and Maths Programming Guides.
Learn to identify and evaluate expressions.
Boolean Algebra and Gate Networks
Millennium High School Agenda Calendar
Section 3.1 Functions.
f(x) = 2x + 3, make a table of values from 0 to 5.
What is it and how do I know when I see it?
DATA TYPES AND OPERATIONS
Basic Programming Lab C.
Variables and Constants
Binary.
Presentation transcript:

Constants, Variables and Data Types

Starter: X=6, Y=7, A= 10 X+Y= A-Y= Y+E=12 What is E?

Variables What is a variable? Research and describe to a partner.

A Variable is: Some thing that could change.

Task: Describe how you think a variable could be used in a computer program to a partner.

Constant Research with a partner and then come up with a comparison to a variable.

A Constant is: A constant is a named item or symbol that does not change. Example: You could define Pi in a program is 3.142 and then this can be used in all subsequent equations.

Task Can you think of other constants you may need a program (you may describe the constants for a specific program) Note: a constant doesn’t have to be a number.

Data types are: A data type defines the range of allowed values that a variable or constant holds

Task 1: Can you list all data types you can think of.

Task 2 Create a table to remind you of all the different data types (state the data type, what it is and then an example) The types you need to identify are: Integer, Real, Boolean, String, character.