Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Document preview thumbnail
Preview 1 out of 1 pages
Essay

Unit 6 P4 Outline the benefits of having a variety of data types available to the programmer

Document preview thumbnail
Preview 1 out of 1 pages

P4 - Outline the benefits of having a variety of data types available to the programmer

Content preview

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

Document information

Study Level
Uploaded on
February 11, 2019
Number of pages
1
Written in
2015/2016
Type
Essay
Professor(s)
Unknown
Grade
Unknown
£3.99
Purchased by 1 students

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
connorj2
3.5
(31)
Sold
75
Followers
61
Items
39
Last sold
4 year ago

Reviews from verified buyers



Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their exams and reviewed by others who've used these revision notes.

Didn't get what you expected? Choose another document

No problem! You can straightaway pick a different document that better suits what you're after.

Pay as you like, start learning straight away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and smashed it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions