CLASS OBJECTIVE
To know for the first time the programming learning tool named PSeInt and its working environment by creating two algorithms using different data types: characters and floating point numbers.
To get started, you'll create the cover for Period 3, in no more than 10 minutes. The requirements are the following:
- Period III written in large size font
- Technology III written below the period title
- Your name, list number and group
- A drawing allusive to Programming languages
INTRODUCTION
As you learned last class, before you start programming you have to know some basic rules of the programming languages: declare different variables types, the using of delimiters, the recongnition of sentences or code lines.
Today we'll start using PSeInt which is a very helpful tool to start learning programming languages. By the way, it works in spanish.
This is the PSeInt main window.
- This is the tool bar. In here you'll find tools like the save, save as, new, do and undo buttons. There are also two very important buttons here, the execute and the flowchart buttons.
- The main working area. This is where you're going to create the program by typing commands or operation names, right between the start and end algorithm points.
- The list of the available operations for data processing. For example: the basic mathematical operators, comparison operators, character operators, etc.
- The commands and programming structures. This is a helpful guide to remember how to interact with the user, how to analyze the information and how to use selections or loops in an algorithm.
Variables
When using PSeInt, before you use variables you'll have to declare them. This means you have to reserve and name a memory space before you use it. How to do it? You´ll use the word "Definir", type the name and select data type.
- Caracter is used to save letters and some symbols.
- Entero is used to save integer numbers.
- Lógico is used to save "true" or "false" answers.
- Real is used to save decimal numbers.
ACTIVITY 1
Start naming the algorithm, its name will be Contador_de_caracteres. As you can see, you can´t use spaces.
Now try to type the next algorithm, I'm sure you'll have to correct some mistakes, it always happen the first time. For example, if you miss the semi-colon delimiter or the quotation marks PSeInt will inform you.
- Escribir and Leer are "well known for you" commands (reserved words), to show information or to ask for information to the user.
- Longitud is an operator to count letters in a string.
ACTIVITY 2
For the second activity, you'll try to create the next by your self.
The only different thing you'll need is a small arrow in the assignment formula.
To get it, type <- (less than and dash)
CLASS NOTES
Write down in your notebook the title of the class, the objective and answer the next questions.
- What does "declare variables" means?
- What are the four data types in PSeInt?
- Which of those were used in today's activities?
- What is the semicolon used for?
- What are the Quotation marks used for?
- How did you type the assignment arrow?
Show your answers to your teacher.