9618 - A level - All Pseudocode

IMPORTANT CORRECTIONS: The FOR loop should end with 'NEXT i' (as opposed to ENDFOR) The RAND function returns a REAL number, so we need to cast the result as an INTEGER 'INT(RAND(4)') In the CASE statement I accidentally omitted the keyword OUTPUT In the CASE statement we should use percentageScore instead of grade The REPEAT loop should repeat UNTIL counter = 0 Pseudocode for SET should be as so: TYPE LetterSet = SET OF CHAR DEFINE Vowels ('A','E','I','O','U'): LetterSet (Thanks to @thecrazylazer, @yashshah2941, @huzaifasohail1, ‪@Iroh4u‬, @loup5816 and @milkbread4527 for spotting these mistakes) These exercises while guide us through the whole A level pseudocode syllabus. Resources: https://paulgieske.gumroad.com/l/djhgc My website: https://paulgieskeblog.com/ I added the following time stamps to help you find specific explanations. (Sorry, it's too complicated to add a time stamp for specific questions.) 00:00:00 Introduction 00:02:21 AS/A2 LEVEL (Papers 1, 2 and 3) 00:12:44 Case 00:21:47 Jim has 22 sweets 00:33:52 StudentRecord 00:38:20 Functions and procedures 00:55:18 Arrays 01:03:44 Loops 01:09:20 Reading and writing files 01:23:12 Comments and string functions 01:25:18 A2 LEVEL (Paper 3 only) 01:25:45 User defined data types 01:38:15 Classes 01:47:00 Handling random files 01:51:15 Exception handling