100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 TrustPilot
logo-home
Summary

Summary Pseudocode Help Guide

Rating
-
Sold
2
Pages
8
Uploaded on
12-01-2023
Written in
2022/2023

Pseudocode Help Guide

Institution
Course










Whoops! We can’t load your doc right now. Try again or contact support.

Written for

Institution
Study
Course
School year
3

Document information

Uploaded on
January 12, 2023
Number of pages
8
Written in
2022/2023
Type
Summary

Subjects

Content preview

Pseudocode
Elements/Function

1) Selection (allows program to follow different paths with one value, we use
IF/ELSE/ELIF/nested if which is an if within an if, you still have to use indentation,
and end the IF function using EndIF)

e.g. IF Weight < 70 THEN

Print "You can continue as normal"

ELSE

ENDIF

IF Weight > 70 THEN

PRINT "You need to start exercising more"

ENDIF

CASE statements are a method of selection when answers don’t consist of values
between a particular range or there are specific values. We
use CASE/OF/OTHERWISE/ENDCASE

e.g. CASE ScoreOfGame OF

1. PRINT "You should try again"

2. PRINT "Not enough points to defeat the game"

3. PRINT "You almost won"

4. PRINT "You beat the game! But not with the highest score"

,5. PRINT "You beat the game and you achieved the highest score"

OTHERWISE

PRINT "You have no score"

ENDCASE




2) iteration (a loop)

(REPEAT/UNTIL for unknown numbers of time but must run at least once)




(FOR/TO/NEXT for limited repetitions)

, (WHILE/DO/ENDWHILE for endless loop which can run forever)




3) arrays (data structure that has only one data type because it is hard to sort the
list but can store multiple data, you can also set up the size of the array such as
[1:45])

Get to know the seller

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
SKH392 Maastricht University
Follow You need to be logged in order to follow users or courses
Sold
334
Member since
2 year
Number of followers
169
Documents
18
Last sold
5 days ago
IGCE and A Level

4.6

9 reviews

5
5
4
4
3
0
2
0
1
0

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Frequently asked questions