A gym stores details about each member. State the most suitable data type for each item.
| Data | Example |
|---|---|
| Age | 15 |
| Phone number | 07700 900123 |
| Height in metres | 1.72 |
| Has paid | true |
[4]
- Age: integer(1)
- Phone number: string (it has a leading 0 / space and is not used in calculations)(1)
- Height: real / float(1)
- Has paid: Boolean(1)
- Answer: integer; string; real; Boolean
- Examiner tip: A phone number is a string, not an integer. Integers lose the leading zero, and you never do maths with a phone number.