In: Computer Science
Every Program comprises of 2 main artifacts - Data and operations. Data can be represented using Data Types . They can be depicted as characters, arrays, numbers, booleans and structures. Structures , however, are replaced with objects in Object oriented world.
Below are high level types of data that a programmer could manipulate :
Characters ('a', 'b', ... 'z', '$', '#', etc)
Arrays (a list of data (of a particular Data Type!))
Numbers, (e.g., -5, -60.34,80.54).
Booleans (true or false)
Structures (a collection referring to a single entity)
Objects (instance of a class in Object Oriented language)
Representations
--------------------
a) Characters :
symbol = '#';
degree = '%';
b) Arrays
names =["Tom","Harry","John"]
c)Numbers
averageTemperature = 35;
major = 18;
d)Booleans
isButtonClicked = true;
e)Structures
We create a employee structure with various datatypes within it
employee.name = 'Harry';
employee.age = 28;
employee.salary = 4500;
employee.isManager = false;