SlideShare a Scribd company logo
1 of 11
Unit 6: Programming Languages
Edgar Fernando Chaves Gutiérrez
Code: 084800712017
José Alberto Céspedes Mape
Code: 084800242017
José Martin Sánchez Cardoso
Code: 084800602017
Juan Sebastián Botero
Code: 084800752017
August 2017
University of Tolima
Technology in Database Management.
English Expression
UNIT 6: PROGRAMMING LANGUAGES
6.1. WARM-UP
Below are some languages. Which ones are computer languages?:
Logo Hindu Japanese Assembler Fortran
Esperanto Morse Code Semaphore Algebra Basic
Ans/Logo, Assembler, Fortran and Basic.
What other types of languages are there, apart from spoken languages like
English, French, etc. (Example: Music, Maths...)?
Ans/ Morse Code, Algebra, Semaphore, etc.
6.2. READING TEXT
B) Questions about the text:
1. What is the elementary language that computers work in called?
Ans/ The elementary language used in computers is the machine code.
2. Can you name a few natural languages?
ans/ Some natural languages are English, Spanish, Chinese, among others.
3. Is BASIC an example of a high level computing language?
Ans/ BASIC is a high level programming language, because it is a language that is
very similar to a natural language and the computer translates it to machine code.
4. What is a flow chart?
Ans/ It is like a diagram, and shows each of the steps that the computer has to
take, and the order in which the steps go.
5. What effect does a bug have on a program?
Ans/ Bugs or errors have the effect that a program does not work correctly, this
caused many programs not to start.
C) Complete these sentences:
1. Machine code is the way the computer works.
2. English, Spanish or Chinese are too complex for the computer.
3. Logo was invented with children particularly in mind.
4. BASIC stands for Beginner's All-purpose Symbolic Instruction Code.
5. Most computer programmers make a plan of their program before they write
it.
6. When all the bugs have been corrected, the program will run.
6.3. MATCHING EXERCISE
A) Primero mire estos 3 breves ejemplos de lenguajes de programación.
B) Below there are three explanations of these programs. Which explanation goes
with which program?
(1) This is a short program in BASIC. Line 10 tells the computer to print <<What is
Your Name?>> on the screen. Then the computer stores your answer in its
memory and if your name is Jill, it print out a message to you.
(3) This program is written ins PASCAL, a language named after a famous French
,mathematician. It is part of a program to work out details about numbers. Many
people think it is easier to write good, neat programs in PASCAL than in BASIC.
(2)This is a language called COBOL. It is used to write programs for business and
requires a lot of memory. This program is part of a registration form. It is the most
widely used language on large computers. COBOL has just four arithmetic
functions built in: Add, subtract, Multiply, Divide.
6.4 PAIR WORK: Witting programs
The results you get from a computer depend on the instructions you give. So you
have to work out a sequence of steps for the computer to follow.
a) Natural Language. Here are some instructions to make a pot of coffee. The
order has been mixed up. Can you put the list of instructions in its correct order.
Write the number in their correct places.
(5) Heat the pot until the water boils.
(1) Put the ground coffee in the filter and place the filter in the bottom part of the
pot.
(7) Wait a couple of minutes.
(4)Put water into the bottom part of the pot.
(3)Screw the top half of the pot onto the bottom half.
(2) Ground the coffee.
(6)When the water boils remove the pot immediately.
(8)Serve the coffee (with milk and sugar if you like)
B) Now write instructions following the above example for one of the things below:
* How to use a pay telephone.
 Need to call.
 Know the telephone number.
 Have money.
 Leave the place where I am.
 Get to the place.
 Ask if there are minutes for the operator.
 Dictate the number.
 Wait for the call to come in.
 Wait for him to answer the call.
 Perform the greeting protocols of the call.
 Communicate the message.
 End the call.
 Deliver the phone to the owner of the cell phone and wait for the cost of the
call.
 Pay what is consumed.
*Hoe to prepare an omelette.
 We take two eggs from the refrigerator and if we do not have it bought in the
market.
 Break them, place their contents in a bowl and mix with a fork.
 If you want we can add condiments like salt or oregano.
 We put a frying pan in an hob with a little oil to heat.
 We threw the eggs and left a few minutes.
 Then we take it out and put it on a plate.
*How to use a washing machine.
 Insert dirty laundry into the washer off.
 Add detergent proportional to clothing.
 Turn on the washing machine, select quick wash and select water level
depending on the amount of laundry.
 Start the washing process, and wait for it to finish.
 Leave clothes lying wherever there is no moisture and find soil that can get
wet, wait until the clothes dry (it can take between 1 hour or more,
depending on different factors such as light, etc.).
 Once you dry the clothes, fold it and store it.
C) This a program in BASIC. It doesn't follow the right order. Can you organize it
properly (or machine will execute it wrongly and the program will not work).
The normal way to order a BASIC program is to give each instructions a line
number. Each one should be separated from the next by 10. So decide which
instruction comes first, and put 10 between the brackets. Then put 20 in the
second instruction, and so on.
() Print "what is your name?"
() Input Age
(10) cls
() Print "Hello; Name$; "you are "; Age
() Print "How old are you?"
(30) Input Name$
() Print "Bye, Bye"
() End
The order would be as follows:
(10) cls
(20) Print "what is your name?"
(30) Input Name$
(40) Print "How old are you?"
(50) Input Age
(60) Print "Hello; Name$; "you are "; Age
(70) Print "Bye, Bye"
(80) End
D) Here is a program in BASIC which has three mistakes, or <<bugs>> as they are
called. A program cannot run properly if it has bugs in it. Can you correct the
program? Where are the bugs?:
Ans/ According to my experience, the correct program would be as follows:
10 PRINT "HELLO!"
20 PRINT "THIS PROGRAM MAKES ADDITIONS"
30 PRINT "INTRODUCE NUMBER ONE = "
40 INPUT A
50 PRINT "INTRODUCE NUMBER TWO ="
60 INPUT B
70 C= A+B
80 PRINT "THE RESULT IS = ";C
90 END
The errors that the previous program had are:
 In the second line of code it is necessary to close the sentence with a
quotation mark.
 Inputs A and B were not in the correct position.
 The operation of the add was badly raised.
6.6. VOCABULARY STUDY
A) look at the list of words bellow. Check that you understand them all, using a
dictionary if necessary.
B) Can you find the word in the above vocabulary list that best fits the following
descriptions?.
1. An elliptical shape Oval.
2. A six-sided figure Hexagon.
3. A three-sided figure, whose angles add up to 180 Triangle.
4. Special identification number in computing Code.
5. A mistake in the program is a Bug.
6. Programmers before marking a program draw a Flow Chart.
6.7. GROUP WORK: Flow Charts
When you are writing a program it sometimes helps to draw a diagram which
shows the order or sequence of action that you want the computer to follow. A
diagram is called a flow chart. A flow chart has different shaped boxes that indicate
different procedures.
A) Shapes used in flow charts:
Can you mark with arrows the shapes with the words?
B) an example of a flow chart.
In your group can you do another flow chart for ONE of the situations bellow?
Using a computer; Buying a book; Ordering a meal in a restaurant.
Using Computer
Buying a Book
Ordering a meal in a restaurant
C) Write the name of each shape according to function.
Oval terminal/start symbol.
Parallelogram input/output symbol.
Diamond decision.
Rectangle operation/process.
6.8. GRAMMAR WORK
* The present perfect tense
A) Answer the questions:
1. Have you ever written a computer program?
Ans/ Yes, I have written a computer program.
2. Have you ever had a Chinese meal?
Ans/ Yes, I have had a Chinese meal.
3. Have you ever kissed a gorilla?
Ans/ No, I haven't kiseed a gorilla.
4. Have you ever seen a shark?
Ans/No, I haven't seen a shark.
5. Have you ever ridden a Yamaha?
Ans/Yes, I have ridden a Yamaha.
B) Complete this dialogue. The first letter of each missing word has been provided:
a) Have you ever used BASIC to write a computer program?
b) Oh, yes I have.
a) What sort of program developed you write?
b) It wrote a program to play a simple game of space invaders.
Notice that the last question and answer are in the past tense.
In pairs, have similar small conversations.
<<Have you ever......?>> If your partner says <<Yes, I Have>>, continue the
conversation: <<When did you.....?>>
C) To find the bugs in a computer program and correct them is a very slow task.
Bugs can be typing mistakes, or errors in your program. Imagine that you are trying
to find a bug in your program, and your teacher is helping you. These are the
questions your teacher asks you:
<<Have you checked the program for typing mistakes?>>
<<Have you printed the program?>>
<<Have you started the program with a <<CLS>> command?>>
Now make more questions of this type.
Ans/ Have you written the program code well?
Have you checked if the program supports your computer?
Have you done a desktop test?

More Related Content

Similar to Unidad 6

Q1 WK 2 MUSIC.pptx
Q1 WK 2 MUSIC.pptxQ1 WK 2 MUSIC.pptx
Q1 WK 2 MUSIC.pptx
RaquelGuardiana1
 
Notes1
Notes1Notes1
Notes1
hccit
 
L1. Basic Programming Concepts.pdf
L1. Basic Programming Concepts.pdfL1. Basic Programming Concepts.pdf
L1. Basic Programming Concepts.pdf
MMRF2
 

Similar to Unidad 6 (20)

6272 cnote
6272 cnote6272 cnote
6272 cnote
 
C progrmming
C progrmmingC progrmming
C progrmming
 
Mastering Python lesson3b_for_loops
Mastering Python lesson3b_for_loopsMastering Python lesson3b_for_loops
Mastering Python lesson3b_for_loops
 
A c program of Phonebook application
A c program of Phonebook applicationA c program of Phonebook application
A c program of Phonebook application
 
Class7 term3 2019-2020
Class7 term3 2019-2020Class7 term3 2019-2020
Class7 term3 2019-2020
 
Q1 WK 2 MUSIC.pptx
Q1 WK 2 MUSIC.pptxQ1 WK 2 MUSIC.pptx
Q1 WK 2 MUSIC.pptx
 
Class9 js word_quar2018
Class9 js word_quar2018Class9 js word_quar2018
Class9 js word_quar2018
 
C programme presentation
C programme presentationC programme presentation
C programme presentation
 
Chapter 2.pptx
Chapter 2.pptxChapter 2.pptx
Chapter 2.pptx
 
Cis 1403 lab1- the process of programming
Cis 1403 lab1- the process of programmingCis 1403 lab1- the process of programming
Cis 1403 lab1- the process of programming
 
01 Programming Fundamentals.pptx
01 Programming Fundamentals.pptx01 Programming Fundamentals.pptx
01 Programming Fundamentals.pptx
 
Workshop 1 2021
Workshop 1 2021Workshop 1 2021
Workshop 1 2021
 
COT 1.pptx
COT 1.pptxCOT 1.pptx
COT 1.pptx
 
Cpp Homework Help
Cpp Homework Help Cpp Homework Help
Cpp Homework Help
 
Exm
ExmExm
Exm
 
Introduction.pptx
Introduction.pptxIntroduction.pptx
Introduction.pptx
 
Notes1
Notes1Notes1
Notes1
 
C programming Basics
C programming BasicsC programming Basics
C programming Basics
 
L1. Basic Programming Concepts.pdf
L1. Basic Programming Concepts.pdfL1. Basic Programming Concepts.pdf
L1. Basic Programming Concepts.pdf
 
Cis 170 Education Organization / snaptutorial.com
Cis 170 Education Organization / snaptutorial.comCis 170 Education Organization / snaptutorial.com
Cis 170 Education Organization / snaptutorial.com
 

More from Jose Sanchez

More from Jose Sanchez (20)

Sanchez_Jose_Semana8.pdf
Sanchez_Jose_Semana8.pdfSanchez_Jose_Semana8.pdf
Sanchez_Jose_Semana8.pdf
 
Database miningguide
Database miningguideDatabase miningguide
Database miningguide
 
Maquinas de vectores
Maquinas de vectoresMaquinas de vectores
Maquinas de vectores
 
Ensayo tutoria 1 sep
Ensayo tutoria 1 sepEnsayo tutoria 1 sep
Ensayo tutoria 1 sep
 
Algoritmos para aplicar data mining
Algoritmos para aplicar data miningAlgoritmos para aplicar data mining
Algoritmos para aplicar data mining
 
Data mining
Data mining Data mining
Data mining
 
Segunda condicional
Segunda condicionalSegunda condicional
Segunda condicional
 
Unit 8
Unit 8Unit 8
Unit 8
 
Aprenda Java como si estuviera en primero
Aprenda Java como si estuviera en primeroAprenda Java como si estuviera en primero
Aprenda Java como si estuviera en primero
 
Preguntas generadoras(1)
Preguntas generadoras(1)Preguntas generadoras(1)
Preguntas generadoras(1)
 
Taller n°1(1)
Taller n°1(1)Taller n°1(1)
Taller n°1(1)
 
Actividad de Aprendizaje
Actividad de AprendizajeActividad de Aprendizaje
Actividad de Aprendizaje
 
Herramientas de Programación
Herramientas de ProgramaciónHerramientas de Programación
Herramientas de Programación
 
Paradigma de Programación Orientada a Objetos
Paradigma de Programación Orientada a ObjetosParadigma de Programación Orientada a Objetos
Paradigma de Programación Orientada a Objetos
 
Paradigmas de Programación
Paradigmas de ProgramaciónParadigmas de Programación
Paradigmas de Programación
 
Introducción a los paradigmas de programación
Introducción a los paradigmas de programaciónIntroducción a los paradigmas de programación
Introducción a los paradigmas de programación
 
The thirty
The thirtyThe thirty
The thirty
 
Resumen 39 steps
Resumen 39 stepsResumen 39 steps
Resumen 39 steps
 
My daily routine
My daily routineMy daily routine
My daily routine
 
Personal introduction
Personal introductionPersonal introduction
Personal introduction
 

Recently uploaded

Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
ciinovamais
 
An Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdfAn Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdf
SanaAli374401
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
kauryashika82
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
negromaestrong
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
heathfieldcps1
 

Recently uploaded (20)

Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
An Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdfAn Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdf
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 

Unidad 6

  • 1. Unit 6: Programming Languages Edgar Fernando Chaves Gutiérrez Code: 084800712017 José Alberto Céspedes Mape Code: 084800242017 José Martin Sánchez Cardoso Code: 084800602017 Juan Sebastián Botero Code: 084800752017 August 2017 University of Tolima Technology in Database Management. English Expression
  • 2. UNIT 6: PROGRAMMING LANGUAGES 6.1. WARM-UP Below are some languages. Which ones are computer languages?: Logo Hindu Japanese Assembler Fortran Esperanto Morse Code Semaphore Algebra Basic Ans/Logo, Assembler, Fortran and Basic. What other types of languages are there, apart from spoken languages like English, French, etc. (Example: Music, Maths...)? Ans/ Morse Code, Algebra, Semaphore, etc. 6.2. READING TEXT B) Questions about the text: 1. What is the elementary language that computers work in called? Ans/ The elementary language used in computers is the machine code. 2. Can you name a few natural languages? ans/ Some natural languages are English, Spanish, Chinese, among others. 3. Is BASIC an example of a high level computing language? Ans/ BASIC is a high level programming language, because it is a language that is very similar to a natural language and the computer translates it to machine code. 4. What is a flow chart? Ans/ It is like a diagram, and shows each of the steps that the computer has to take, and the order in which the steps go. 5. What effect does a bug have on a program? Ans/ Bugs or errors have the effect that a program does not work correctly, this caused many programs not to start. C) Complete these sentences: 1. Machine code is the way the computer works. 2. English, Spanish or Chinese are too complex for the computer. 3. Logo was invented with children particularly in mind. 4. BASIC stands for Beginner's All-purpose Symbolic Instruction Code.
  • 3. 5. Most computer programmers make a plan of their program before they write it. 6. When all the bugs have been corrected, the program will run. 6.3. MATCHING EXERCISE A) Primero mire estos 3 breves ejemplos de lenguajes de programación. B) Below there are three explanations of these programs. Which explanation goes with which program? (1) This is a short program in BASIC. Line 10 tells the computer to print <<What is Your Name?>> on the screen. Then the computer stores your answer in its memory and if your name is Jill, it print out a message to you. (3) This program is written ins PASCAL, a language named after a famous French ,mathematician. It is part of a program to work out details about numbers. Many people think it is easier to write good, neat programs in PASCAL than in BASIC. (2)This is a language called COBOL. It is used to write programs for business and requires a lot of memory. This program is part of a registration form. It is the most widely used language on large computers. COBOL has just four arithmetic functions built in: Add, subtract, Multiply, Divide. 6.4 PAIR WORK: Witting programs
  • 4. The results you get from a computer depend on the instructions you give. So you have to work out a sequence of steps for the computer to follow. a) Natural Language. Here are some instructions to make a pot of coffee. The order has been mixed up. Can you put the list of instructions in its correct order. Write the number in their correct places. (5) Heat the pot until the water boils. (1) Put the ground coffee in the filter and place the filter in the bottom part of the pot. (7) Wait a couple of minutes. (4)Put water into the bottom part of the pot. (3)Screw the top half of the pot onto the bottom half. (2) Ground the coffee. (6)When the water boils remove the pot immediately. (8)Serve the coffee (with milk and sugar if you like) B) Now write instructions following the above example for one of the things below: * How to use a pay telephone.  Need to call.  Know the telephone number.  Have money.  Leave the place where I am.  Get to the place.  Ask if there are minutes for the operator.  Dictate the number.  Wait for the call to come in.  Wait for him to answer the call.  Perform the greeting protocols of the call.  Communicate the message.  End the call.  Deliver the phone to the owner of the cell phone and wait for the cost of the call.  Pay what is consumed. *Hoe to prepare an omelette.  We take two eggs from the refrigerator and if we do not have it bought in the market.  Break them, place their contents in a bowl and mix with a fork.  If you want we can add condiments like salt or oregano.  We put a frying pan in an hob with a little oil to heat.  We threw the eggs and left a few minutes.  Then we take it out and put it on a plate.
  • 5. *How to use a washing machine.  Insert dirty laundry into the washer off.  Add detergent proportional to clothing.  Turn on the washing machine, select quick wash and select water level depending on the amount of laundry.  Start the washing process, and wait for it to finish.  Leave clothes lying wherever there is no moisture and find soil that can get wet, wait until the clothes dry (it can take between 1 hour or more, depending on different factors such as light, etc.).  Once you dry the clothes, fold it and store it. C) This a program in BASIC. It doesn't follow the right order. Can you organize it properly (or machine will execute it wrongly and the program will not work). The normal way to order a BASIC program is to give each instructions a line number. Each one should be separated from the next by 10. So decide which instruction comes first, and put 10 between the brackets. Then put 20 in the second instruction, and so on. () Print "what is your name?" () Input Age (10) cls () Print "Hello; Name$; "you are "; Age () Print "How old are you?" (30) Input Name$ () Print "Bye, Bye" () End The order would be as follows: (10) cls (20) Print "what is your name?" (30) Input Name$ (40) Print "How old are you?" (50) Input Age (60) Print "Hello; Name$; "you are "; Age (70) Print "Bye, Bye" (80) End D) Here is a program in BASIC which has three mistakes, or <<bugs>> as they are called. A program cannot run properly if it has bugs in it. Can you correct the program? Where are the bugs?:
  • 6. Ans/ According to my experience, the correct program would be as follows: 10 PRINT "HELLO!" 20 PRINT "THIS PROGRAM MAKES ADDITIONS" 30 PRINT "INTRODUCE NUMBER ONE = " 40 INPUT A 50 PRINT "INTRODUCE NUMBER TWO =" 60 INPUT B 70 C= A+B 80 PRINT "THE RESULT IS = ";C 90 END The errors that the previous program had are:  In the second line of code it is necessary to close the sentence with a quotation mark.  Inputs A and B were not in the correct position.  The operation of the add was badly raised. 6.6. VOCABULARY STUDY A) look at the list of words bellow. Check that you understand them all, using a dictionary if necessary. B) Can you find the word in the above vocabulary list that best fits the following descriptions?.
  • 7. 1. An elliptical shape Oval. 2. A six-sided figure Hexagon. 3. A three-sided figure, whose angles add up to 180 Triangle. 4. Special identification number in computing Code. 5. A mistake in the program is a Bug. 6. Programmers before marking a program draw a Flow Chart. 6.7. GROUP WORK: Flow Charts When you are writing a program it sometimes helps to draw a diagram which shows the order or sequence of action that you want the computer to follow. A diagram is called a flow chart. A flow chart has different shaped boxes that indicate different procedures. A) Shapes used in flow charts: Can you mark with arrows the shapes with the words? B) an example of a flow chart.
  • 8. In your group can you do another flow chart for ONE of the situations bellow? Using a computer; Buying a book; Ordering a meal in a restaurant. Using Computer
  • 9. Buying a Book Ordering a meal in a restaurant
  • 10. C) Write the name of each shape according to function. Oval terminal/start symbol. Parallelogram input/output symbol. Diamond decision. Rectangle operation/process. 6.8. GRAMMAR WORK * The present perfect tense A) Answer the questions: 1. Have you ever written a computer program? Ans/ Yes, I have written a computer program. 2. Have you ever had a Chinese meal? Ans/ Yes, I have had a Chinese meal. 3. Have you ever kissed a gorilla? Ans/ No, I haven't kiseed a gorilla. 4. Have you ever seen a shark? Ans/No, I haven't seen a shark. 5. Have you ever ridden a Yamaha? Ans/Yes, I have ridden a Yamaha. B) Complete this dialogue. The first letter of each missing word has been provided: a) Have you ever used BASIC to write a computer program? b) Oh, yes I have. a) What sort of program developed you write? b) It wrote a program to play a simple game of space invaders. Notice that the last question and answer are in the past tense. In pairs, have similar small conversations. <<Have you ever......?>> If your partner says <<Yes, I Have>>, continue the conversation: <<When did you.....?>> C) To find the bugs in a computer program and correct them is a very slow task.
  • 11. Bugs can be typing mistakes, or errors in your program. Imagine that you are trying to find a bug in your program, and your teacher is helping you. These are the questions your teacher asks you: <<Have you checked the program for typing mistakes?>> <<Have you printed the program?>> <<Have you started the program with a <<CLS>> command?>> Now make more questions of this type. Ans/ Have you written the program code well? Have you checked if the program supports your computer? Have you done a desktop test?