Pseudocode

Beschreibung

Describing how to write pseudocode algorithms
Gelöschter Nutzer
Notiz von Gelöschter Nutzer, aktualisiert more than 1 year ago Mehr Weniger
Oliver Faragher
Erstellt von Oliver Faragher vor etwa 8 Jahre
Oliver Faragher
Kopiert von Oliver Faragher vor etwa 8 Jahre
69
0

Zusammenfassung der Ressource

Seite 1

In pseudocode you use similar terms to flowcharts however you have to lay it out in a different way with all of the outputs and inputs being shown. All instructions must be written in capital letters. The instructions include:OUTPUT = The device outputs a piece of data (question e.t.c) INPUT = The user puts something into the programSTORE = Allows the device to remember a variableIF = A question checking a condition, like a decision in flowchartsTHEN = Showing what to do if the answer to IF is true (yes)ELSE = Showing what to do if the answer to IF is false (no)REPEAT UNTIL = Repeating the algorithm until a condition is metThe most common way to start an algorithm is with a question written like this:OUTPUTINPUTSTOREThis allows the question to be asked, an answer to be revived, and the answer to be stored for later use as a variable. It would look like this in a practical situation.OUTPUT: "What is your name?"INPUT: user inputs nameSTORE: user answer in name variableAfter this it would be common to add an IF, THEN, ELSE sequence afterwards to determine what happens next. For example:IF name (this is the variable) = "Oliver" THEN OUTPUT: "That's mine too!"ELSE OUTPUT: "Nice name, mine's Oliver"With pseudocode you would never write in the start and stop like you do with flowcharts.Useful BBC Bitsize: http://www.bbc.co.uk/education/guides/z3bq7ty/revision/2

Zusammenfassung anzeigen Zusammenfassung ausblenden

ähnlicher Inhalt

Ohne Titel
yiozor
Einstufungstest Italienisch Niveau B1.1
SprachschuleAktiv
Latein Grundwortschatz Vokabeln
anna.grillborzer0656
PuKW STEP 6 (mögliche Prüfungsfragen/Prüfungsvorbereitung)
frau planlos
Genetik (Aufbau DNA, Replikation, Proteinbiosynthese)
gina_celine-broz
Blut und Blutkreislauf
Ulrike Renauer
Grundzüge Soziologie Richter
Kamila rURKA
Projektmanagement Uni Due
Awash Kaul
vetie Para 2016
Anne Heyne
Milchkunde 2019 - Vetie
Peter Christian Ponn
Vetie Spezielle Pathologie 2022
Alessandro Bertino