BTEC Unit 06 – Lesson 06 Evidencing P4 Mr C Johnston ICT Teacher www.computechedu.co.uk.

Slides:



Advertisements
Similar presentations
Computer Programming Mr. José A. Ortiz Morris. Computer Language  Languages that the computer understands.  They are low level languages. (BINARY 1.
Advertisements

Programming Paradigms and languages
Number Systems and Codes
Primitive Data Types There are a number of common objects we encounter and are treated specially by almost any programming language These are called basic.
VARIABLES: Your Own Piece of the ram. Why Use Variables? To save a piece of data in memory To save a piece of data in memory To store results of a calculation.
CIS 234: Using Data in Java Thanks to Dr. Ralph D. Westfall.
BTEC Unit 06 – Lesson 04 Evidencing P2 Mr C Johnston ICT Teacher
Adding Automated Functionality to Office Applications.
Software design and development Marcus Hunt. Application and limits of procedural programming Procedural programming is a powerful language, typically.
Mr C Johnston ICT Teacher BTEC IT Unit 06 - Lesson 02 Types of Programming Language.
Mr C Johnston ICT Teacher
Variables and Constants
Mr C Johnston ICT Teacher BTEC IT Unit 06 - Lesson 05 Learning To Program.
06/10/ Working with Data. 206/10/2015 Learning Objectives Explain the circumstances when the following might be useful: Disabling buttons and.
Mastering Char to ASCII AND DOING MORE RELATED STRING MANIPULATION Why VB.Net ?  The Language resembles Pseudocode - good for teaching and learning fundamentals.
Mr C Johnston ICT Teacher BTEC IT Unit 06 - Lesson 01 Introduction to Computer Programming.
While Loops Indefinite Iteration. Last lesson we looked at definite loops using the ‘For’ statement. The while loop keeps going while some condition is.
BTEC Unit 06 – Lesson 08 Principals of Software Design Mr C Johnston ICT Teacher
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.
G045 Lecture 09 ERD Diagrams (Entity Relationship Diagrams) Mr C Johnston ICT Teacher
By the end of this session you should be able to...
CPS120: Introduction to Computer Science
Chapter 4 Variables and constants. 4.1 Variables -Use of variables is good programming style -easier to modify -easier for a programmer to understand.
Mr C Johnston ICT Teacher BTEC IT Unit 06 - Lesson 03 Choosing A Programming Language.
Systems Life Cycle. Know the elements of the system that are created Understand the need for thorough testing Be able to describe the different tests.
WHAT IS A DATABASE? A DATABASE IS A COLLECTION OF DATA RELATED TO A PARTICULAR TOPIC OR PURPOSE OR TO PUT IT SIMPLY A GENERAL PURPOSE CONTAINER FOR STORING.
What is data? Chapter 1. Introduction This presentation covers the following: – What is data? – What is information? – Representing data – What is knowledge?
Data Types and Variables. Data Type! Computers are all about Data! Data can be in the form of Text Dates Sounds Pictures.
G040 – Lecture 06 Comparing Documents Report Mr C Johnston ICT Teacher
Mr C Johnston ICT Teacher
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.
Data as the computer sees it 1.  Number systems Number systems  Data storage Data storage  Glossary Glossary 2.
Chapter 4 Variables and constants. 4.1 Variables -Use of variables is good programming style -easier to modify -easier for a programmer to understand.
G042 Lecture G042 Feedback 2011 Mr C Johnston ICT Teacher
Data Tonga Institute of Higher Education. Variables Programs need to remember values.  Example: A program that keeps track of sales needs to remember.
Mr C Johnston ICT Teacher
Mr C Johnston ICT Teacher BTEC IT Unit 03 - Lesson 07 Information System Case Studies.
Programming with Microsoft Visual Basic th Edition
BTEC Unit 06 – Lesson 06 Evidencing P3 Mr C Johnston ICT Teacher
CPS120: Introduction to Computer Science Variables and Constants.
SIGNIFICANT FIGURES AND DECIMAL PLACES
G042 - Lecture 09 Commencing Task A Mr C Johnston ICT Teacher
Variables and Expressions Programming Right from the Start with Visual Basic.NET 1/e 7.
Data Handling in Algorithms. Activity 1 Starter Task: Quickly complete the sheet 5mins!
Algorithms and Pseudocode
Skills Workshop pages How to Homework without sweating F Four Simple Rules.
Announcements Assignment 2 Out Today Quiz today - so I need to shut up at 4:25 1.
» There appears to be a ‘moderately high correlation’ between people’s literacy and numeracy levels (DfEE, 2011) » “It is difficult to think of a situation.
Mr C Johnston ICT Teacher BTEC IT Unit 08 - Lesson X P6 – Plan an E-commerce Strategy.
Chapter 2 Variables and Constants. Objectives Explain the different integer variable types used in C++. Declare, name, and initialize variables. Use character.
G043: Lecture 12 Basics of Software Development Mr C Johnston ICT Teacher
BTEC NCF IT Unit 02 Creating Systems to Manage Information Lesson 05 – Data Types Mr C Johnston.
Choosing Data Types Database Administration Fundamentals
DATA TYPES.
Unit 2 Technology Systems
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.
Data Types, Arithmetic Operations
Variables and Primative Types
BTEC NCF IT Unit 02 Creating Systems to Manage Information Lesson 05 – Data Types Mr C Johnston.
To assess my understanding of averages.
Chapter 2.
Finding Answers through Data Collection
LO To assess my understanding of number skills
Data Types & File Size Calculations
ICT Programming Lesson 1:
Fundamental Programming
Unit 3: Variables in Java
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.
GCSE Computing:: Selection (IF statements)
Variables and Constants
Presentation transcript:

BTEC Unit 06 – Lesson 06 Evidencing P4 Mr C Johnston ICT Teacher

Session Objectives Understand different data types there formats and use Be able to use the correct data type for a variable storing a specific value, Understand the grading requirements of P4.

Data Types???

Data Types We know from lesson 05 that every variable needs to be assigned a data type, The data type sets the type of data which will be stored within it and the range of values it can accept and how the data will be formatted when displayed, Although data types vary from programming language to programming language most support similar ones, The next slide shows some of the data types which are supported in visual basic.

Visual Basic Data Types Data TypeData UseRange of Values BooleanValues that can be true or falseTrue or False ByteWhole numbers(8 bit) 0 to 255 IntegerWhole numbers(16 bit) -32,768 to +32,767 LongLarge whole numbers c + / - 2x10 9 SingleDecimal numbers (float)Up to 7 significant figures DoubleLarge decimal numbersUp to 14 significant figures CurrencyNumber formatted to 2DP DateDate and TimeVariety of date and time formats StringAny type of characterSometimes char limit VbMsgBoxResultResults of msgbox button pressesvbYes, vbNo, vbOK, vbCancel etc

Choosing Data Types Assigning the correct data type to a variable is important for example: Choosing a data type with a capacity to store more data than will ever be required is wasteful, Choosing a data type that is too small for the value being stored can crash the program, Text cant be stored in numerical data types however any characters can be stored in strings, Numerical data cant start in a 0 as its breaks the rules of maths learnt at primary school, If you need to perform calculations and comparison of numerical data then its cant be stored as text, If a data item is to be used in different parts of the program then its type needs to be consistent, Code can be used to change the data type of a variable e.g. cint(variable) or clng(variable) or cstr(variable)

Evidencing P4 P4 asks you to produce some further slides in your presentation which explain why different data types are needed and the benefits to programmers of having a range of data types to work with, Start off by explaining the different data types available and what each is used for – include some sensible examples, Think about the space occupied for each and why it might be useful compared to other types, Make a comment about which data types seem to be common in different programming languages and which are proprietary, Write a some notes which explains why it is important to choose the correct data type and some of problems if the programmer gets it wrong.

A written response for P4 may be appropriate, or a table with perhaps three or four columns: data type, example, space occupied and comment. The data types available may be different according to which language is chosen, however there is an expectation that learners know of the wider range of data types available, six would be sufficient. P4 – explain why different data types are needed in programs and describe the benefits of having a variety of data types available to the programmer Visual Basic Data Types: Java Data Types: C++ Data Types: Pascal Data Types: