Pseudocode, fundamentals, variable, datatype, declaration, input, output, assignment, conditional statement, loop structure, value, average, operators, action
Pseudocode is a clear and concise way to represent an algorithm.
Data items to be processed are given meaningful names in the same way the variables and constants are in a high-level programming language.
To ensure that pseudocode is easily understandable by others it is useful to be consistent in the way that it is written.
[...] DeclarationA declaration is used to specify the fiction of a variableThis is the way to write a declaration in pseudocode:DECLARE < variable >: For e.g.:DECLARE number : INTEGERDECLARE sentence : STRINGDECLARE alphabet : CHARDECLARE choice : BOOLEAN Input/OutputAn input is used to enter a data.For e.g., Input numberInput sentenceAn output is used to display the input data or a messageFor e.g. Output “Hello” Output numberNote: Used inverted comma when displaying a messageFor e.g. Output “Good morning everybody ” Assignment They are values which are assigned to a variable using an arrow operatorFor e.g. :Cost 10Gender “M” Choice FalseOperators used in pseudocode :OPERATORSACTION+Add-Subtract*Multiply /Divide^Raise to the power() Groupe.g. [...]
[...] The fundamentals of pseudocodeWhat is pseudocode? It is a clear and concise way to represent an algorithm. Data items to be processed are given meaningful names in the same way the variables and constants are in a high-level programming language.To ensure that pseudocode is easily understandable by others it is useful to be consistent in the way that it is written.What you will learn with this note? VariableDatatypeDeclarationInput/OutputAssignmentConditional statementLoop structureVariableA variable is a data stored in a computer memoryIt is a name given to a data during programmingFor e.g. [...]
[...] For e.g. 56.5,67-6.5,-34.9CHAR- It represents a single character such as an alphabet. For e.g. RSTRING- It represents a text, a letter, a word or a group of words. For e.g. My name is Tom, Ball, Book.Date- It represents a month, day, year or a date format. For e.g. [...]
APA Style reference
For your bibliographyOnline reading
with our online readerContent validated
by our reading committee