Khan/khan-exercises — pull request #34693 by jeresig (2012-11-27 01:31:51+00:00)
Title: Computer Science Exercises

This is a first pass at Computer Science exercises. I've included a simple exercise: Variables 1. It's very basic but it encapsulates some of what I'm hoping to tackle. I'll be providing a more complex example tomorrow.

In order for this to work you'll need to be running a Khan Academy server using the latest code in the labs-cs branch. A number of modifications have been made to the CS framework in order for this to work.

Since a bunch of work will be required in order for that to happen, I've taken the liberty of making some screenshots of the exercise in action:

Coding a Variable (the primary exercise, weight of 3):
http://ejohn.org/files/screen/2012-11-26_1957.png

Upon completion you will see the running program:
http://ejohn.org/files/screen/2012-11-26_1958.png

The results are verified by a test suite (note the tests in the solution area of the exercise file).

This particular problem is an implementation of the example provided in the Winston tutorial:
http://www.khanacademy.org/cs/winston/823977317

There is also a debugging problem:
http://ejohn.org/files/screen/2012-11-26_1954.png

And a problem focusing on basic assignment:
http://ejohn.org/files/screen/2012-11-26_1956.png

Naturally these exercises are going to become much more complex, very soon, but I think this is a good framework for much of what we want to achieve.