Contrary to previous announcement in lectures, there will be lab exercises for week 11. I was not able to arrange that we skip next week’s lab and extend into week 13. So students who have labs on Monday, will have to do the exercises themselves and show their solutions to their tutors during the Wednesday [...]
Entries from September 2009
Week 11 and the long weekend
September 30th, 2009 · No Comments
Tags: Lab
Week 10 Lab
September 27th, 2009 · No Comments
Add a number of objects in a world and place some or all the objects in a list. Next, write a function that counts and returns the number of objects in your list. Use this function to make every object in the list say this number. For example, if your list has 4 objects then [...]
Tags: Lab
Week 9 Lab
September 20th, 2009 · No Comments
The following code features nested loops. How many times is the ‘inner loop’ executed? How long does the entire block of code take to execute? What would happen to execution time if the duration for the revolving overall Ferris wheel is changed from 12 seconds to 15 seconds? 10 seconds?
Give at least one significant difference [...]
Tags: Lab
Assignment 3
September 20th, 2009 · No Comments
For the 3rd and final assignment, you will design and implement a program for managing phone contacts in Alice.
Requirements
Your program must include:
A means for adding a phone contact. You can assume that a phone contact consists of two strings: aname and a number (stored as a string since you cannot have leading 0’s in a number).
A [...]
Tags: Assignment
Flow charts and pseudo code
September 14th, 2009 · No Comments
When you present your designs for the assignment you may use either flow charts or pseudo code. Pseudo code is often easier to write and understand.
Tags: Assignment
Assignment 2 submission
September 13th, 2009 · No Comments
As with assignment 1, there will be two phases to your submission of assignment 2:
Designs must be presented in the week 8 lab and hard-copies of your flowcharts given to your tutor.
Final implementation is due at the end of week 8 (Midnight Sunday 20 Sept)
You must submit your assignments online using the online ‘give‘ page. [...]
Tags: Uncategorized
Week 8 Lab
September 13th, 2009 · No Comments
Present your Assignment 2 storyboards.
Evaluate (give the value of) each of the following expressions:
3 < 5
true == false
10 >= 10
true and false
not ( both 3 < 5 and 10 >= 10)
Which of the expressions in question 2 (above) is considered a logical expression? Give a reason for your choice.
Exercise 6-10 Flying Between Two Trees. “Create a world [...]
Tags: Lab