CS 315
Homework 2

Assigned:  December 4, 2017
Due:  December 11, 2017, 23:59

Subprogram Parameters in Javascript, Python, and PHP

In this homework assignment you will investigate some of the issues related to the parameters in Javascript, Python, and PHP languages. The issues you will investigate are

First investigate how each of these issues are answered in each of these three programming languages. Then write simple programs clearly illustrating the design decisions for the issues in the languages. Discuss the results of execution of your programs. To help the TAs understand your code and give you good grades, appropriately comment your source to explain your example and why your example is appropriate for this homework.

Place your example programs under different files each having your last name and name, and a description for the language used. For example, lastname_name_javascript.html, lastname_name_python.py, lastname_name_php.php (or lastname_name_php.html)

Also, write a report that contains your sample programs, the results of compilations and executions, and your discussions on the results.

Make sure you give a list of rerefences and proper citations to these references in your report about the design choices for these issues in the languages covered in this homework.

You may use the tutorials as a reference, but do not derive your example programs from these tutorials. If you do so, your grade will be negatively affected.

Put your report and example files into a folder named lastname_name and make a zip or rar of the folder. Then, e-mail this file to the TA, Gizem Çaylak < gizem.caylak@bilkent.edu.tr >.

Collaboration on the homework is not allowed.

Suggestion: Do not postpone the execution of your programs to the last minute!. The dijkstra machine might be overloaded, then.