SlideServe
Menu
Préférences
© SlideServe · v2026

Raptor

anila avatar
28 diapositives · 1.2K Views · Oct 11, 2014

Raptor. Mr. Lau Ka Lun Lai King Catholic Secondary School. Introduction. RAPTOR is freely distributed as a service to the CS education community. It was originally developed by and for the US Air Force Academy, Department of Computer Science. It is free software.

Raptor - slide 1
01 / 28Raptor
1 / 17

Télécharger la présentation

Raptor
Une image / un lien ci-dessous est fourni (tel quel) pour télécharger la présentation

Politique de téléchargement : le contenu du site vous est fourni TEL QUEL pour votre information et votre usage personnel ; il ne peut être vendu, concédé sous licence ni partagé sur d’autres sites sans l’accord de son auteur.Le contenu vous est fourni TEL QUEL, pour votre information et votre usage personnel uniquement. Téléchargez la présentation en cliquant sur ce lien. Lors du téléchargement, si vous ne parvenez pas à télécharger une présentation, l’éditeur a peut-être supprimé le fichier de son serveur.Pendant le téléchargement, si vous ne parvenez pas à obtenir une présentation, le fichier a peut-être été supprimé par l’éditeur.

F I N

Plus de contenu associé

Transcription de la présentation
  1. Raptor Mr. Lau Ka Lun Lai King Catholic Secondary School

  2. Introduction • RAPTOR is freely distributed as a service to the CS education community. • It was originally developed by and for the US Air Force Academy, Department of Computer Science. • It is free software. • RAPTOR is a flowchart-based programming environment. • to help students visualize their algorithms and avoid syntactic baggage. • RAPTOR programs are created visually and executed visually by tracing the execution through the flowchart. • Required syntax is kept to a minimum.

  3. Website • http://raptor.martincarlisle.com/

  4. Layout • Mode -> Novice • Run the program • Pause • Stop • Speed of running • Generate source code

  5. Program Structure • When executing a RAPTOR program, you begin at the Start symbol and follow the arrows to execute the program • A RAPTOR program stops executing when the End symbol is reached.

  6. RAPTOR Statements/Symbols • The top four statement types: • Assignment, Call, Input, and Output • The bottom two types: • Selection and Loops

  7. RAPTOR Variables

  8. Common errors when using variables

  9. Input Statement/Symbol

  10. Assignment Statement/Symbol • Variable ← Expression

  11. Operators and Functions

  12. Procedure Call Statement/Symbol

  13. Examples

  14. Examples (cont.) Read_Scores Calculate_Average_Score Print_Those_Above_Average

  15. Output Statement/Symbol

  16. Comments in RAPTOR

  17. Sequential Program Control • in sequence • one-after-the-other

  18. Selection Control

  19. relational and logical operators

  20. Selection Control Examples

  21. Cascading Selection statements

  22. Loop (Iteration) Control

  23. Input Validation Loops

  24. Counting Loops Statements to be repeated

  25. Input Loops

  26. "Running Total" Loops

  27. "Counting" Loops

  28. Exercises • Write a series of RAPTOR statements that determines if X has the value 1, 2, or 3, and prints out “ONE”, “TWO”, or “THREE” accordingly. • Write a complete program that converts between degrees Fahrenheit and Celsius. The user must first enter the conversion that is desired (F to C or C to F) using any means you want and then enter the value to be converted. The formulas for conversion are: F = 9/5 C + 32 and C = 5/9 (F – 32) • Write a complete program that plays the game of HI-LO. The program asks one user for a number between 1 and 100 and verifies that such a number has been entered. It then asks a second user for a guess and reads it in. If the guess is correct a congratulation message is written to the screen and the program ends. Otherwise the message “HI” or “LOW” is displayed (if the guess is higher or lower) and another guess is asked for and read in.