The 9618 AS level requires answers in the exam paper to be given in Pseudocode, so these should be regarded as skills builders towards the A2 paper.
Functions and procedures
string manipulation
Start with the tutorials Sting Slicing & String Formatting
A quick fire exercise to check your understanding of string manipulation.
Fingers Ready
Fingers Ready
Rövarspråket (100 points)
STUDENT SUBMITTED: This is a SUPER-SECRET language. Rövarspråket is not very complicated: you take an ordinary word and replace the consonants with the consonant doubled and with an "o" in between. So the consonant "b" is replaced by "bob", "r" is replaced with "ror", "s" is replaced with "sos", and so on. Vowels are left intact. It's made for Swedish, but it works just as well in English. (Extra info) GIS SUBMIT>> |
VALIDATE A BYTE (50 Points)
Create a Parity Byte entry system generator that uses even parity. GIS SUBMIT>> DENARY TO BCD CONVERTER (50 points)
Write a piece of code which asks the user to input a denary number and outputs the Binary Coded Decimal conversion of it. GIS SUBMIT>> |
2D arrays
For 1d arrays have a look at Lists & number lists
X-FACTOR (100 points)
Use a 2d array to create a playlist system for 10 artists with 10 songs each. Your algorithm will create a random order for the songs, with the bands having a minimum distance of 2 songs. i.e. you can't play the same band again until 2 songs have passed. (You do not have to play EVERY song in the system, just 20 is enough.) GIS SUBMIT>> |
CHECKERS BOARD (125 points)
Given two numbers nn and mm. Create a two-dimensional array of size (n×m)(n×m) and populate it with the characters "." and "*" in a checkerboard pattern. The top left corner should have the character "." GIS SUBMIT>> |
RUN OFF (100 points)
This challenge will use 2D Arrays to run a run-off election! Please read the extra information for more details. GIS SUBMIT>> |
linear search
Write the Python required to do a linear search of Python in an array. (100 points)
GIS SUBMIT>>
GIS SUBMIT>>
bubble sort
Write the Python required for a bubble sort. Test it with 9 randomly assigned numbers. GIS SUBMIT>>
File handling
See Filehandling page.