1 / 8

Constants, Variables and Data Types

Constants, Variables and Data Types. Mr Henry . 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 something which can change! (It varies!!). Paired Work!.

wendi
Download Presentation

Constants, Variables and Data Types

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Constants, Variables and Data Types Mr Henry

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

  3. Variables What is a variable? Research and describe to a partner. A variable is something which can change! (It varies!!)

  4. Paired Work! Describe how you think a variable could be used in a computer program to a partner.

  5. 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.

  6. 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.

  7. Data types are: A data type defines the range of allowed values that a variable or constant holds Can you list all data types you can think of?

  8. Independent Work 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. Then research what the purpose of different data types? Good website to help

More Related