Computer Languages

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

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

Transcript of Computer Languages

Page 1: Computer Languages

Computer LanguagesComputer Languages

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

Page 2: Computer Languages

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

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

C

Page 3: Computer Languages

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

Page 4: Computer Languages

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.

Page 5: Computer Languages

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.

Page 6: Computer Languages

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

Page 7: Computer Languages

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

Page 8: Computer Languages

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

Page 9: Computer Languages

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

Page 10: Computer Languages

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?

Page 11: Computer Languages

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

Page 12: Computer Languages

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

Page 13: Computer Languages

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

Page 14: Computer Languages

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.

Page 15: Computer Languages

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

Page 16: Computer Languages

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>

Page 17: Computer Languages

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.