Problem Solving: Data Types
Problem Solving: Data Types
Data Types
Data Types
All variables require a data type. The data type is used to define the type of data that the
variable will hold in memory. Different data types have different rules about how the data can
be used.
Data is classified into types, such as a set of whole numbers (also known as integers) or a set
of printing characters.
Different types of data are represented in different ways inside a computer and need varying
amounts of memory to store them. They also have different operations that can be performed
upon them. All values that belong to the same data type will be represented in the same way.
There are five data types that you need to know and understand.
Data Types
Character a, F, 3, $, £, # 1 byte
Evaluation:
Costper hour Constant 25.00 constant
Questions:
See attached document
Homework