

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


Nikko DC Estores March 04, BSME-1N Assignment 2:
example, the number 1, the letter a, and the unique combination of letters that forms the word apple are all values. In a computers, a value is usually a number, a single character, or a string of characters.
the data may have. Depending on its type, a unit of data will be stored and operated upon in different ways. Examples of data types include integers, booleans, and strings.
example, "hello world" and "LKJH019283" are both examples of strings. In computer programming, a string is usually attached to a variable as shown in the example below.
integers are 1, 2, 3, and 4. Examples of negative integers are -1, -2, -3, and -4. The number 0 is also considered an integer even though it has neither a positive or negative value. In most programming languages, you can convert a number into an integer using the int function.
position elements on a web page. For example, on this page an image is displayed on the right-side of this block of text. An image may be floated by using the img element with the CSS property float, as shown in the HTML/CSS code below.
point number values. A floating-point number is one where the position of the decimal point can "float" rather than being in a fixed position within a number. Examples of floating-point numbers are 1.23, 87.425, and 9039454.
name does not change. Variables are used with most programming languages and come in many forms, defined by the script or software programmer.
to perform a specific task.
value assigned may be constant, variable or an expression.
operator, with the operands '3' and '5'.
Each programming language and application has its own rules for what is legal and illegal. For example, in the C language x+5 is an expression
you're more familiar with the programming language Scratch, print is equivalent to say.