Extra Homework 3

Due by 11:59pm on Tuesday, December 14

Instructions

Download extra03.zip. Inside the archive, you will find a file called , along with a copy of the Ok autograder.

Submission: When you are done, submit with python3 ok --submit. You may submit more than once before the deadline; only the final submission will be scored.

Using Ok

The ok program helps you test your code and track your progress. The first time you run the autograder, you will be asked to log in with your @berkeley.edu account using your web browser. Please do so. Each time you run ok, it will back up your work and progress on our servers. You can run all the doctests with the following command:

python3 ok

To test a specific question, use the -q option with the name of the function:

python3 ok -q <function>

By default, only tests that fail will appear. If you want to see how you did on all tests, you can use the -v option:

python3 ok -v

If you do not want to send your progress to our server or you have any problems logging in, add the --local flag to block all communication:

python3 ok --local

When you are ready to submit, run ok with the --submit option:

python3 ok --submit

Readings: You might find the following references useful:

Extra Homework 3

In this homework, you will complete the optional problem #2 from Scheme project, i.e., you will be implementing the function do_define_macro in the scheme_forms.py file. You can copy paste your code from the project. For the purposes of this homework, only the tests for optional problem #2 will be run.