Вы находитесь на странице: 1из 4

ACTIVITY 1: Introduction of Programming

Language
Duration: 2 Hours

Learning Outcomes
This Tutorial encompasses activities 1A, 1B and 1C.

By the end of this tutorial session, you should be able to:


1. Differentiate the various categories of programming languages.
2. Explain the language translators.
3. Relate the programming languages application in real life.

Activity 1A
Activity Outcome: Identify the programming language generation based on the figures given.

Look carefully at the images given. The images uniquely represent each programming
language generation that you have learned. Can you identify and match the programming
language generation correctly? Give ONE (1) more feature that you can recall on each
generation that you have identified.

Features

A collection of binary numbers understood by a


computer.
By using binary number,it not require any

translator.

Assembly Language
(2nd generation)
Features

Translation to machine language is performed


using compiler or interpreter.
It considered as high level programming
language.

Machine Language
(1st generation)
Features

Also known as symbolic language because it


uses mnemonic code.
Use translator which called assembler to
translate mnemonic into binary.

3rd generation
Language
Activity 1B
Activity Outcome: Distinguish between the various language translators.

Determine the language translator, X and Y in Figure 1.1 and state TWO (2) of their
advantages and disadvantages.

X Y

Figure 1.1

X Compiler

Performs the translation of a program as a whole and execution is


Advantages

Faster.

Debugging is hard as error messages are generated after


Disadvantages
scanning the entire program only.

Y Assembler

Very fast in translating assembly language to machine code as


Advantages
one to one relationship.

Lots ot assembly code is needed to do relatively simple tasks and


Disadvantages
complex programs require lots of programming time.
Activity 1C
Activity Outcome: Determine programming languages application in real life.

1. In groups of two, discuss on steps needed to deposit cash on Cash Deposit Machine.

1) Get the type of language from user. (Input)

2) Get the account number from user. (Input)

3) Get the type of transaction from user. (Input)

4) Get the type of account from user. (Input)

5) Get the amount of money from user. (Input)

6) Process the input data. (Process)

7) Produce the receipt of transaction. (Output)


Discuss and list an example of suitable application which implements programming in
real life application in each field.

Medical

1. Digital X-Ray
2. Blood Glucose Meter
3. Digital Stethoscope
4. Hearing Aid

1. Computer
2. Printer
3. Photostat Machine
4. Calculator

Education

Agricultural

1. Sprayer
2. Hay Baler
3. Tractor
4. Backhoe Loader

Вам также может понравиться