CT240 lab2
http://geminga.it.nuigalway.ie/~gettrick/courses/CT240/labs/l2.html
-
For this lab you must submit a printout of all source code (python
files), and the result(s) of running the program on (a few)
test cases.
The source code must
be well presented (indenting, spaces, reasonable variable/function names,
etc.) and must include comments (as a rough guideline - aim to have nearly as
many comments as lines of code). Any questions asked should be answered on a plain sheet of paper.
-
The above material should be given to Paul or left in the cardboard box marked CT240 in the mail room (room IT415) on the 4th floor of the IT Building
before
the deadline of 5pm
Monday 29th. September 2008. You will lose 20% for each day
(or part of day) the lab is late.
-
Plagiarism (the unattributed copying of work from other sources
(internet, fellow students,....)) will not be tolerated. Please see
http://www.nuigalway.ie/engineering/documents/plagiarism_guide_students
_v4.pdf. You risk getting zero for your lab if it is found to be
plagiarized.
-
Write a program (with no input) that uses a while loop to
print out "hello world" 93 times.
-
Write a program (with no input) that uses a while loop to
print out all the numbers between 1 and 93.
-
Write a program (with no input) that uses recursion
to print out "hello world" 93 times.
-
Write a program (with no input) that uses recursion to
print out all the numbers between 1 and 93.
©
NUI, Galway