A-level Computing/AQA/Problem Solving, Programming, Data Representation and Practical Exercise/Fundamentals of Programming/answers

From Wikibooks, open books for an open world
Jump to: navigation, search

Variables[edit]

  1. number1
    1. dim name as string
      
    2. dim gender as char
      
      or
      ENUM
      
    3. dim DoB as date
      
    4. dim teacher as boolean
      
  2. number1
  3. A person's height in metres is a decimal number, an integer only stores whole numbers. You should use a double or a single instead.