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
      
    1. dim gender as char
      

or

ENUM
    1. dim DoB as date
      
    1. dim teacher as boolean
      
  1. number1
  2. 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.