lunes, 28 de noviembre de 2016

Unit 3

How work the computers?
UNIT 3

A) Comparisons

Look at this information:
• How many people live in London?
r/ Two people live in London.
• Who is older, John or David?
r/ John is elder than David.
• Who is the youngest?
r/ Mary is the youngest.
• How many people weigh more than Mary?
r/ Two people weigh more than Mary.
• Is Jane taller than David?
r/ No, Jane is more low than David.
C) Now look at this information What output would we get id we typed these instructions?

• List for age < 50
r/ this instruction list the registry for Beatrice, Fred, Karen and Sandy
• List for weight > 70
r/ this instruction list the registry for Karen and Sandy
• List for height <> 1.75
r/ this instruction list the registry of all.
What instruction would you give to find out?
• Who is younger than 40
r/ List for age < 40
• Who is taller than 1.60
r/ List for height > 1.60
• Who is older than 23
r/ List for age > 23
• Who weighs more than 67 k
r/ List for weight > 67 k
• Who is shorter than 1.65
r/ List for height < 1.65

No hay comentarios:

Publicar un comentario