Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 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
Module

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])

Written for

Institution
Study
Module
School year
3

Document information

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

Subjects

$4.11
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

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
338
Member since
3 year
Number of followers
169
Documents
18
Last sold
2 months ago
IGCE and A Level

4.6

9 reviews

5
5
4
4
3
0
2
0
1
0

Why students choose Stuvia

Created by fellow students, verified by reviews

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

Didn't get what you expected? Choose another document

No problem! You can straightaway pick a different document that better suits what you're after.

Pay as you like, start learning straight 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 smashed it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions