Escolar Documentos
Profissional Documentos
Cultura Documentos
Comments in Raptor
The RAPTOR development environment, like many other programming
languages, allows comments to be added to your program. Comments are
used to explain some aspect of a program to a human reader, especially in
places where the program code is complex and hard to understand. Comments
mean nothing to the computer and are not executed. However, if comments are
done well, they can make a program much easier to
understand for a human reader.
Purpose
Symbol
OUTPUT
Name
output
statement
Description
. Display (or save to a file) the
value of a variable.
procedure
call
procedure
call
assignment
statement
input
statement
PROCESSING
PROCESSING
INPUT
RAPTOR TUTORIAL
In this practice of raptor we try the one of calculating the triangle Area. For this
practice we use imput for the titles and for the questions. The first input was to
ask for the Height. The second one ask for the base. Then after that 2 inputs
you should add an Assignment for the operation. That was H X B divided by 2.
After that assignment finally add an output that it was putting the answer of the
operation, and at the end we finalize with the output that was the result of the
operation. At the end click play and in the Master Console appear how does
the procedure have end.
For this one we calculate the Polygon area, that was more longer than the
others because it consist of more procedure. First add an output that says of
what are we were going to make the procedure about. Then enter an input
asking for the side number of the polygon. In the second input I ask for the
value of each of the size that a polygon has. And the last input was asking for
the apothem. Then after 3 input, we are getting the information in order to have
a complete procedure. Then in the assignment put the procedure that was side
times volume. And in the second assignment add side times volume times
volume, then divide by 2. Finally add and output that says the result of the
procedure and a second output with the answer. Click play and in the left side it
appears what you made.
The last practice that we made was for calculate the age. First add an
output with spaces, then in the second output put the title that is Age and in
the third Output it was for only spaces. Then in the first input it ask for the
Birthday. So because it was only asking for one thing, in the assignment you
should put a process to add your year. In the last Output add what was going
to be the answer. And at the end add the last Oputput with the answer. Finally
click play and in the left side it appear what was my age and the procedure.
This was my experience with this new program Raptor. I really hope I can
apply this knowledge in my daily life. With this knowledge we got, now we can
share what we know, what we learn, with other people that doesnt even know
that Raptor exist. I already teach my cousin to use this program, she like it and
now she is teaching my aunt and my uncle.This was one of the programs that I
really really enjoyed and understand very well.