Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Statements
LESSON 2
Pseudocode
an English-like representation of the
logical steps it takes to solve a problem
pseudo means false, code is a
instructions using a programming
language
Pseudocode simply means false code
Example
Writing Pseudocode
Number-doubling program
start Beginning Statement
input myNumber
set myAnswer = myNumber * 2
output myAnswer
stop Terminating Statement
Writing
Pseudocode
Function Other terms
start begin
stop end
input get or read
start
output “Please enter any number:”
input anyNumber
set quotient = anyNumber/2
output “The quotient is: ”
output quotient
stop
Seatwork 1
Write a pseudocode to
represent the logic of a
program that allows users to
enter two values. The
program outputs the product
of the two values.
Seatwork 2
Variables
sideA
sideB
sideC
surfaceArea
Sample Output