In this lab you'll start learning your selected languages.
For each of your two languages, develop a language resource wiki page
or web page. Spend some time searching for useful resources,
documentation, and formal descriptions of the language. Organize the
page in a useful way.
For each language, you and your partner for that language should develop a single set of pages.
- Write an example program in each language that demonstrates the rules for identifier naming, variable declarations and identifier scoping. Focus on any special rules or capabilities of your language. Make a wiki page with the code and a brief explanation how the scoping rules apply to the code.
- Write an example program in each language that executes a binary seach on a list or array of numbers. Make a wiki page that explains the basic syntax of the language, using the binary search program as an example.
- A perfectly acceptable extension for any assignment going forward is to do a third language.
- Write other example programs that show unique features of the syntax or scoping in the language.
- If the language has a built-in capability for binary search, include an example of using it.
- Come up with an example of just how horribly you can write the binary search program, making it as difficult as possible to understand what is going on. Use this as an example of how syntactic or semantic rules permit obfuscation.
- Make a compilable and runnable haiku in the language.
The writeup for this week is the assignment itself. Once you have written up your assignment, give your main page for each language the label: