I was asked this as a question last week so have put together a short example program showing how SDD could be integrated with WDD by using Python to create/write to an HTML file. This allows the output from the program to be nicely formatted when combined with some CSS. The file also shows how Python can automatically open the HTML file once its created.
This example assumes that SDD is the major component of the project and WDD is the minor. The program would obviously have to meet AH criteria to be valid.
A booklet for teaching & learning of OOP concepts - built around Python examples. Useful resource to use with AH pupils and those teachers not already familiar with OOP. I've updated this booklet from last year's version to cover printing objects using the special method __str__().
I intend to use this to formally cover OOP for a few lessons to lead in to using Greg Reid and David Stott's excellent Pygame OOP resources.
I created this for CPD I delivered in Fife before I left teaching. I have used this as additional classwork as it provides another game example.
Booklet 2 focusses on sub-classes, 2D arrays and multiple screens.
You might have to wait a while for booklets 3 and 4. Started writing 3 four years ago, got half way through and other things took priority. I'll finish them one day. Had more fun writing this than anything else I've ever written.
Orginally wrote this for previous AH course and sold it commmercially in UK and USA. Uploading now in case anyone wants to use with budding programmers when schools are shut (I've given this to tallented S3 pupils previously).
If you want to use for current AH a bit of work may need done on terminology and UML diagrams.
Apologies for any errors or typos. Incorporates SQA, older Scholar and Brian Clark's Use Case materials.
Last of these programming tasks. This one is fairly difficult so I'd advise to use it as a challenge task for able students and not as a normal class exercise.
The task is based around the board game Go that I've been playing for nearly 40 years and has some fairly complex problem solving sub-tasks.
Note that there is only one solution this time (took me two hours to code the example in Python and don't have time to do another I'm afraid). I wrote a recursive version of a similar program on my ZX Spectrum years ago. Have avoided using recursion this time as it's been removed from the course. Would be an interesting exercise for someone to do though 😉
Another 2D array task for AH.
This one is just a wee problem solving exercise. Create a grid of 20 random values (4x5) where the numbers 1 to 10 appear twice.
Note that this has been put into the scenario of a Primary maths game. This idea could be developed into an AH SDD project if the maths questions and answers were stored in a database table. (Could even have questions of varying diffiiculty in the database with the user selecting their level.) A bit of thought may be required on what standard algorithm could be included.
I've included two very different solutions in Python. Note that I've used a simple 2D list. Were I doing this with an AH class I'd probably implement a proper array structure using the numPy module.
A small 2D array, OO task I created for the son of an ex-colleague that I'm tutoring this session.
Two different solutions created:
1) A 2D list is used simply to note where or not a square in the treasure hunt has been taken. A 1D list of objects stores the name, telephone number and x, y coordinates of the square they selected. The winner is chosen by doing a linear search of the list of objects looking for the randomly generated winning coordinates.
2) A 2D list of objects stores the name and telephone number of the person that selected each square. The random winning coordinates are used to get the name and telephone number from the object stored at those coordinates.
I'll try and write a few of these.
Hi folks, I have put together a new set of PHP Tasks. It covers all of the PHO/HTML course content bar Media queries. It does not assume that candidates have covered the SQL content at AH level.
If there are any issues please do let me know at firstname.lastname@example.org , I have attached the SQL + solution files except for the summary task at the end.
Bubble and insertion Sort
Bubble and insertion Sort
Scan of the 2018 Advanced Higher Computing Science paper
word version of 2-D array example from Scholar materials
VB 2-D example from Scholar course
Hi folks, this is some exercises aimed at the AH PHP content, I have also attached the SQL files to create/populate some of the databases.
Has been written using mysqli and uses a similar approach to the Scholar exercises.
Reuploaded due to small error in Ex8
SDD UASP Pack 2 in Python, with sample solution for Task 2