Benefits of different data types
String:
This data type is very useful for programmers because it can hold countless numbers
and leters without having to use the data type char In programmingd to use strings
you have to use quotaton marks to emphasise that it’s a quote and not a command
For example print “my name is”
Char:
Another data type that is useful to programmers is Char You would use this data
type when you want to hold a single character but you don’t need string Like with
string you have to use quotaton marks around the character that is being stored For
example print "8"
Boolean:
This data type can be used in both coding and algorithm It’s part of a larger group of
algebra that is used for creatng a true or false statement This data type holds a true
or false/ yes or no etc valued it is mainly used for if statements because an if
statement can only end up with a true or false value If statements can be used in
many different programs such as surveys etc with two possible answers because if
one answer is selected some partcular code for that answer will be run
Integer:
This is a data types that you will need to use while programming It’s also useful
when you want to handle numbers in various ways In codingd the meaning of integer
is the same of what it is in math’s It’s a whole number Having this data type
programming is useful to programmers when writng a program because the
program will most like have numbers in the code
Float:
It’s similar to an integer however foatng point is different because it has decimal
between the numbers and also integers don’t have any decimal it’s a whole number
A Float data type is a number that has a decimal in them For example 3 14
String:
This data type is very useful for programmers because it can hold countless numbers
and leters without having to use the data type char In programmingd to use strings
you have to use quotaton marks to emphasise that it’s a quote and not a command
For example print “my name is”
Char:
Another data type that is useful to programmers is Char You would use this data
type when you want to hold a single character but you don’t need string Like with
string you have to use quotaton marks around the character that is being stored For
example print "8"
Boolean:
This data type can be used in both coding and algorithm It’s part of a larger group of
algebra that is used for creatng a true or false statement This data type holds a true
or false/ yes or no etc valued it is mainly used for if statements because an if
statement can only end up with a true or false value If statements can be used in
many different programs such as surveys etc with two possible answers because if
one answer is selected some partcular code for that answer will be run
Integer:
This is a data types that you will need to use while programming It’s also useful
when you want to handle numbers in various ways In codingd the meaning of integer
is the same of what it is in math’s It’s a whole number Having this data type
programming is useful to programmers when writng a program because the
program will most like have numbers in the code
Float:
It’s similar to an integer however foatng point is different because it has decimal
between the numbers and also integers don’t have any decimal it’s a whole number
A Float data type is a number that has a decimal in them For example 3 14