Computer Languages

Preview:

DESCRIPTION

Computer Languages. )(*&)*(%&$#@!!+_)(*&^%$. C. omputer language is what machines use to communicate with each other. T. he simplest language is called “Machine Language.” Also called “binary,” it looks like this:. 000000 00001 00010 00110 00000 100000 01010 10101 01101 0001. T. - PowerPoint PPT Presentation

Citation preview

Computer LanguagesComputer Languages

)(*&)*(%&$#@!!+_)(*&^%$

omputer language is what machines use to communicate with each other.

omputer language is what machines use to communicate with each other.

C

he simplest language is called “Machine Language.”Also called “binary,” it looks like this:

he simplest language is called “Machine Language.”Also called “binary,” it looks like this:

T

000000 00001 00010 00110 00000 100000 01010 10101 01101 0001

000000 00001 00010 00110 00000 100000 01010 10101 01101 0001

he simplest language is called “Machine Language.”Also called “binary,” it looks like this:

he simplest language is called “Machine Language.”Also called “binary,” it looks like this:

T

000000 00001 00010 00110 00000 100000 01010 10101 01101 0001

000000 00001 00010 00110 00000 100000 01010 10101 01101 0001

..means the letter “K” in machine language.

..means the letter “K” in machine language.

000000 00001 00010 00110 00000 100000 01010 10101 01101 0001

000000 00001 00010 00110 00000 100000 01010 10101 01101 0001That’s right. When you hit

the letter K on your keyboard, all this binary code is sent to the computer and a K pops up on your screen.

That’s right. When you hit the letter K on your keyboard, all this binary code is sent to the computer and a K pops up on your screen.

ompter language is hard to read! ompter language is hard to read!

C001000 10001 01010 00110 00000 100000

01010 10101 01101 0001 01101 00011 11 00 10110 00011 01000 11000 0101

10101 00111 01111 01000 0001 00111 001000

001100

001000 10001 01010 00110 00000 100000

01010 10101 01101 0001 01101 00011 11 00 10110 00011 01000 11000 0101

10101 00111 01111 01000 0001 00111 001000

001100

001000 10001 01010 00110 00000 100000

01010 10101 01101 0001 01101 00011 11 00 10110 00011 01000 11000 0101

10101 00111 01111 01000 0001 00111 001000

001100

001000 10001 01010 00110 00000 100000

01010 10101 01101 0001 01101 00011 11 00 10110 00011 01000 11000 0101

10101 00111 01111 01000 0001 00111 001000

001100

001000 10001 01010

00110 00000 100000

01010 10101 01101 0001

01101 00011 11 00

10110 00011 01000

11000 0101 10101 00111

01111 01000 0001 00111

001000 001100

001000 10001 01010

00110 00000 100000

01010 10101 01101 0001

01101 00011 11 00

10110 00011 01000

11000 0101 10101 00111

01111 01000 0001 00111

001000 001100

o programmers use a translation tool called an “Assembly Language” that uses names instead of numbers that is more user friendly.

o programmers use a translation tool called an “Assembly Language” that uses names instead of numbers that is more user friendly.

S

or instance, when a programmer types “mov al, 061h” it means move the hexadecimal value 61 (97 decimal) into the processor register with the name "al".

or instance, when a programmer types “mov al, 061h” it means move the hexadecimal value 61 (97 decimal) into the processor register with the name "al".

F

hat’s easier than typing thousands of 1’s and 0’s, but it’s still very difficult for all but the most Hard Core nerds to comprehend.

hat’s easier than typing thousands of 1’s and 0’s, but it’s still very difficult for all but the most Hard Core nerds to comprehend.

T

igher-level language translates still further igher-level language translates still further

Hcomplex *p = NULL;

abs_p = sqrt (p->real * p->real + p->im * p->im);

asc_^ x = [n/> 01]

complex *p = NULL;

abs_p = sqrt (p->real * p->real + p->im * p->im);

asc_^ x = [n/> 01]

Beginning to recognize some words? Beginning to recognize some words?

he computer language you are learning is called HTML. They are known as “4th generation” higher-level languages because they are at least 4 steps above machine language…

he computer language you are learning is called HTML. They are known as “4th generation” higher-level languages because they are at least 4 steps above machine language…

T

very keystroke of a 4G language contains thousands of bits of information.

very keystroke of a 4G language contains thousands of bits of information.

E

f course, the ultimate goal is a language that approximates human words allowing us to speak our instructions directly into the computer. Then we’re all doomed. -Sarah Connor

f course, the ultimate goal is a language that approximates human words allowing us to speak our instructions directly into the computer. Then we’re all doomed. -Sarah Connor

O

Inline styles•Inline styles are HTML codes that that change the elements in a page.

• h1 is really big, h6 is really small…

<h1> Millendez's Math Class </h1><h1> Millendez's Math Class </h1>

• The code might look something like this:

•HTML supports six heading styles, numbered h1 through h6.

<h1> <h1> Millendez's Math ClassMillendez's Math Class </h1> </h1>

Inline styles•Use inline styles to align your web page element:

<h1 style =“text-align: center”> Millendez's Math Class </h1><h1 style =“text-align: center”> Millendez's Math Class </h1>

• The code might look something like this:

<h2 style =“text-align: center”> at New Technology High School </h2><h2 style =“text-align: center”> at New Technology High School </h2>

<h2> Math Classes </h2><h2> Math Classes </h2>

<h2> Class Policies </h2><h2> Class Policies </h2>

<h3> Grading </h3><h3> Grading </h3>

<h3> Appointments </h3><h3> Appointments </h3>

<h3> Safety </h3><h3> Safety </h3>

Elements

• Web Page Elements are important to understand because you can assign “attributes” to them.

<p id=“title”> High School </p><p id=“title”> High School </p>

• The code might look something like this:

• “title” is the attribute that will be applied to all the content contained within the tags.

• “Quotation Marks” are required for attribute values.

Recommended