5.0 Programming

10
twitter.co m/amiruldaniel Amiruldanielsa bri(SMK Sultan Badlishah Kulim) PROGRAMMING (5.0) Basic Programming Concept ( 5.1 ) Define Program and Programming Language ( 5.1.1 ) State the definition of program ( 5.1.1.1 ) A computer program is a set of instructions given to the computer to perform any task. State the definition of programming language ( 5.1.1.2 ) A programming language is a set of wor ds, symbols and codes that enables human to communicate with computers. Example of programming language:- Levels and Generations Of Programming Languages (5.1.2) Identify the generations of low-le vel programming languages wi th examples. (5.1.2.1) First Generation: Language that computers can execute directly. Instructions in this language are in the form of binary digits 1s and 0s. Examples : Machine Language 64 Dim number1 as Integer Dim number2 as Integer number1 = 10 number2 = 20 If total = number1 + number2 Then Print “Excellent” Else Print “Please try again” End If code s Words (Dim, If, Then, For, Next) Symbol (=, +, -, *, /) Low-level programming languages First Generation Machine Language Second Generation Assembly Language 101 000 010 011 001 101 Sta tement for add ing two numbers.  

Transcript of 5.0 Programming

Page 1: 5.0 Programming

8/7/2019 5.0 Programming

http://slidepdf.com/reader/full/50-programming 1/10

Page 2: 5.0 Programming

8/7/2019 5.0 Programming

http://slidepdf.com/reader/full/50-programming 2/10

Page 3: 5.0 Programming

8/7/2019 5.0 Programming

http://slidepdf.com/reader/full/50-programming 3/10

Page 4: 5.0 Programming

8/7/2019 5.0 Programming

http://slidepdf.com/reader/full/50-programming 4/10

Page 5: 5.0 Programming

8/7/2019 5.0 Programming

http://slidepdf.com/reader/full/50-programming 5/10

Page 6: 5.0 Programming

8/7/2019 5.0 Programming

http://slidepdf.com/reader/full/50-programming 6/10

Page 7: 5.0 Programming

8/7/2019 5.0 Programming

http://slidepdf.com/reader/full/50-programming 7/10

Page 8: 5.0 Programming

8/7/2019 5.0 Programming

http://slidepdf.com/reader/full/50-programming 8/10

Page 9: 5.0 Programming

8/7/2019 5.0 Programming

http://slidepdf.com/reader/full/50-programming 9/10

Page 10: 5.0 Programming

8/7/2019 5.0 Programming

http://slidepdf.com/reader/full/50-programming 10/10