GoConqr has a new look! Let us know what you think.

Slides

Pseudo code guide

Oscar Smith Computer Science Year 10 English 5 slides

Slides in this set (5)

  1. Inputs and Outputs

    • If the user has to input something you write INPUT and then the variable
    • If the program has to output something then you write OUTPUT followed by what you are outputting in speech marks.
  2. Selection

    • For IF statements
    • You write IF followed by the desired condition and then a THEN (instead of a colon). You can then write what happens next, making sure that it is on the line below and indented.
    • You can use ELIF for any following conditions.
    • Next you write ELSE followed by what happens next, making sure that it is on the next line and indented.
    • Finish the IF statement by writing ENDIF at the bottom of the statement.
  3. Iteration

    • For iteration:
    • For a loop, you simply write REPEAT at the top of the code you want to repeat and then at the bottom of this code you write UNTIL followed by the condition.
    • Make sure that the code you are looping is indented.
  4. Example

    • REPEAT
    • OUTPUT "Please enter a parcel number"
    • INPUT parcel number
    • IF parcel number has eight characters THEN
    • OUTPUT "valid parcel number"
    • ELSE
    • OUTPUT "Invalid parcel number"
    • ENDIF
    • UNTIL parcel number has eight characters
  5. Functions

    • It is similar to python. At the top of your function write FUNCTION (then your function name).
    • To jump to this function you just write the function name followed by ().

Information

Description
Year 10 Computer Science Slide Set on Pseudo code guide, created by Oscar Smith on 20/09/2018.
Created by
Oscar Smith · Sep 2018
Updated
Sep 27, 2018
Views
1
Rating

Feedback

What is it about?

What do you think of the new look?

How do you like it?