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.

Slides:



Advertisements
Similar presentations
Ch. 3 Variables VB.Net Programming. Data Types Boolean – True or False values Short – Small integers (+/- 32,767) Integer – Medium-size integers (+/-
Advertisements

DATA TYPES ICT DATATYPES. DATA TYPES ICT Numeric Data Numeric data simply means numbers. But, numbers come in a variety of different types... Integers.
CIS 234: Using Data in Java Thanks to Dr. Ralph D. Westfall.
Introduction to Computers and Programming Lecture 4: Mathematical Operators New York University.
2440: 211 Interactive Web Programming Expressions & Operators.
Class 2 Remote Instruction Introduction to Variables EDU 556 Programming for Instruction Dr. Steve Broskoske This is an audio PowerCast. Make sure your.
DATABASE. Computer-based filing systems Information in computer-based filing systems are stored in DATA FILES. A FILE is a collection of RELATED RECORDS.
Java Data Types. Primitive Data Types Java has 8 primitive data types: – char: used to store a single character eg. G – boolean: used to store true or.
Objectives: To evaluate and simplify algebraic expressions.
Logical or Boolean Data stored in Boolean form can only be one of two available values. Think of a light switch – it’s on or off. Examples include: YES.
Chapter 5: Data Types (2013) Revision Candidates should be able to know: Identify different data types? Key terms: File, record, field and key field Database.
Primitive Variables.
Equation Jeopardy Add Mixed Multiply/ Divide Fractions Q $100 Q $200 Q $300 Q $400 Q $500 Q $100 Q $200 Q $300 Q $400 Q $500 Final Jeopardy Subtract.
Variables in Java x = 3;. What is a variable?  A variable is a placeholder in memory used by programmers to store information for a certain amount of.
Relational Databases. Relational database  data stored in tables  must put data into the correct tables  define relationship between tables  primary.
Data,information Data and Information 4 Data –Raw, unorganised facts –Ideas or concepts 4 Information –When data is manipulated into a meaningful form.
Variables 1. What is a variable? Something whose value can change over time This value can change more than once over the time period (no limit!) Example:
CHAPTER 2 PROBLEM SOLVING USING C++ 1 C++ Programming PEG200/Saidatul Rahah.
Variables Continued In the last session we saw how variables are objects that allow us to store values in the RAM of the computer In this session we shall.
Variables in VB. What is a variable? ► A named memory location that stores a value.
VCE IT Theory Slideshows By Mark Kelly vceit.com Version 2 – updated for 2016 Data Types 1 a.
Data Handling in Algorithms. Activity 1 Starter Task: Quickly complete the sheet 5mins!
Creation of Variables with Numeric, alphanumeric, date, picture, memo data types Constant - A quantity that does not change during the execution of a program.
Chapter 4: Variables, Constants, and Arithmetic Operators Introduction to Programming with C++ Fourth Edition.
Chapter 9: Data types and data structures OCR Computing for A Level © Hodder Education 2009.
Chapter 2 Variables and Constants. Objectives Explain the different integer variable types used in C++. Declare, name, and initialize variables. Use character.
INTEGERS Absolute Value Numbers and the Number Line Addition Subtraction Multiplication and Division Add/Subtract Matrices.
Choosing Data Types Database Administration Fundamentals
DATA TYPES.
Unit 2 Technology Systems
Algorithm & Flowchart.
CST 1101 Problem Solving Using Computers
+ 0 Integer Operations -.
WARM UP The least common denominator of the fractions and is
ITM 352 Data types, Variables
Variables Mr. Crone.
Variables Variables are used to store data or information.
Data Types Variables are used in programs to store items of data e.g a name, a high score, an exam mark. The data stored in a variable is entered from.
Programming constructs
Integer Real Numbers Character Boolean Memory Address CPU Data Types
Introduction to Computer Science / Procedural – 67130
Documentation Need to have documentation in all programs
Unit 16 – Database Systems
Introduction to Python Data Types and Variables
Addition of Real Numbers
Types of data This presentation differentiates between ICT professional and end users.
Multiply Decimals.
Data Types.
Data Types & File Size Calculations
Data Types and Data Structures
Chapter 3 DataStorage Foundations of Computer Science ã Cengage Learning.
Quadratic Inequalities
Computing in COBOL: The Arithmetic Verbs and Intrinsic Functions
Quadratic Inequalities
Data Representation and Organization
CHAPTER FOUR VARIABLES AND CONSTANTS
Calculating Square Roots – Part 2
Language Constructs Construct means to build or put together. Language constructs refers to those parts which make up a high level programming language.
Introduction to Primitives
ICT Database Lesson 2 Designing a Database.
Variables Here we go.
C# Revision Cards Data types
Data Types Every variable has a given data type. The most common data types are: String - Text made up of numbers, letters and characters. Integer - Whole.
Data Types and Maths Programming Guides.
An Introduction to Programming
Natural Numbers The first counting numbers Does NOT include zero
DATA TYPES AND OPERATIONS
Variables and Constants
Section 6 Primitive Data Types
Presentation transcript:

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 the most appropriate data types to make the most effective use of memory and to ensure that only the correct types of data are allowed to be input

Variables A variable can be declared to have a data type including: Character String Integer Real Boolean

Character Allows any single letter or number Example R

String Allows any combination of letters, numbers and spaces Example R C Taylor A text or string data type can hold any alphanumeric. The data can be pure text or a combination of text, numbers and symbols. Examples Address – 110 Station Road Telephone Number – NOTE: people often assume that a telephone number would be stored as an 'integer' data type. After all, they do look like numbers don't they! But think about it... Telephone numbers need to be stored as a text/string data type because they often begin with a 0 and if they were stored as an integer then the leading zero may not be stored. The other reason is that you are never likely to want to add or multiply telephone numbers so there is no reason to store it as an integer data type.

Integer Whole numbers only Example 356 An ‘Integer’ data type stores whole numbers. The numbers can be both negative or negative but cannot contain fractions or decimals p

Real For numbers that include fractions or decimals Example 4.43 A ‘Real’ Data type is Numerical Data which contains decimals or Fractions It would be used when extra detail is required and a whole number would not provide enough information. Examples of where ‘Real’ data type is used can be seen below Weight in Kg – 12.25, 19.99, etc Room Measurement in metres , 3.87 etc Temperature (Degrees Celsius) – 32.2, 37.7 etc Note that the ‘real’ data types cannot store the measurement symbols themselves (£,$ etc) nor the type of quantity being measured (metre, Kg etc) Also note that currency can be either a ‘real’ or an integer data type

Boolean Can only be TRUE or FALSE Example TRUE/false Yes/no 0/1 A Boolean data type is used to answer questions where there are exactly two options, three options would mean that it is no longer Boolean. Here are some example questions where the responses would be stored as Boolean data: Has the Heating been turned on? Yes / No Are you employed? Yes / No

Quiz Link1 Link Link 2 Quiz Home Page