Access over 20 million homework & study documents
search

Programming Basics

Content type

User Generated

Subject

Programming

Type

Note

Rating

Showing Page:
1/12
Page1
FLOWCHARTS
A flowchart is a diagrammatic representation of the logic of an algorithm using a series of
symbols and lines. The operations to perform arithmetic computations, make comparisons etc.
are shown inside boxes in the flowchart. The flowchart should be unambiguous, neat and easy to
follow..
Symbols
Flowline
Connector
Start / stop
Input/ output
Decision
Process
Preparation
Predefined Process

Sign up to view the full document!

lock_open Sign Up
Showing Page:
2/12
Page1
Stored Data
Annotation
Pseudocode is another way of representing the logic of a program. It can be defined as English-
like statements used to express the steps of an algorithm. The prefix ‘pseudo’ means in this
context - resembling or imitating. Pseudocode therefore is intended to resemble actual program
code as best as possible. The idea is that the pseudocode will, line by line, easily be converted
into program source code for easier and smoother program implementation.
All languages have two major component rules syntax and semantics. Pseudocode must also
then conform to a set of rules, even more as it mimics artificial language.
Syntax rules governing correct use of language, word and sentence structures, sentence pattern,
organization, the structure of commands, statements, or instructions that are given to a computer.
Semantics – refers to the meaning of statements.
Elements of pseudocode
Words:
Terminal points (i.e. begin, end, start, stop, enter, return)
Reference points (i.e. Repeat, Until, DoWhile, EndDo, For, EndFor)
Statements:
Instructions in a sentence form
Always begin with a verb
Must be semantically correct in natural language (i.e. English)
Must be properly structured and indented to illustrate flow of logic and control
Syntax: Input, Output, Assignment
Input: READ <variable> [, <variable>[,…]]
Output: WRITE <expression> [, <expression>[,…]]
Assignment: [Let] <identifier> <expression>

Sign up to view the full document!

lock_open Sign Up
Showing Page:
3/12

Sign up to view the full document!

lock_open Sign Up
End of Preview - Want to read all 12 pages?
Access Now

Unformatted Attachment Preview

FLOWCHARTS A flowchart is a diagrammatic representation of the logic of an algorithm using a series of symbols and lines. The operations to perform arithmetic computations, make comparisons etc. are shown inside boxes in the flowchart. The flowchart should be unambiguous, neat and easy to follow.. Symbols Flowline Connector Start / stop Input/ output Decision Process Preparation Predefined Process Stored Data Annotation Pseudocode is another way of representing the logic of a program. It can be defined as English-like statements used to express the steps of an algorithm. The prefix 'pseudo' means in this context - resembling or imitating. Pseudocode therefore is intended to resemble actual program code as best as possible. The idea is that the pseudocode will, line by line, easily be converted into program source code for easier and smoother program implementation. All languages have two major component rules - syntax and semantics. Pseudocode must also then conform to a set of rules, even more as it mimics artificial language. Syntax - rules governing correct use of language, word and sentence structures, sentence pattern, organization, the structure of commands, statements, or instructions that are given to a computer. Semantics - refers to the meaning of statements. Elements of pseudocode Words: Terminal points (i.e. begin, end, start, stop, enter, return) Reference points (i.e. Repeat, Unti ...
Purchase document to see full attachment
User generated content is uploaded by users for the purposes of learning and should be used following Studypool's honor code & terms of service.

Anonymous
Awesome! Perfect study aid.

Studypool
4.7
Trustpilot
4.5
Sitejabber
4.4