
-----------------------------------
Martin
Fri Aug 20, 2004 4:24 pm

Are YOU ready for Waterloo CS?
-----------------------------------
http://www.cs.uwaterloo.ca/undergrad/admissions/placement/cs134.shtml

This is the test to see if you are ready for CS 134 (the most advanced of the three first year choices for computer science) at the University of Waterloo.

Note: don't email it to the guys unless you actually are attending the university :P.

-----------------------------------
Dan
Fri Aug 20, 2004 7:11 pm


-----------------------------------
dose not seem that hard to me, i think i had a question alot like that on my grade 12 compsci exame that was on java.

-----------------------------------
wtd
Fri Aug 20, 2004 7:35 pm


-----------------------------------
It does seem pretty easy.

-----------------------------------
Dan
Fri Aug 20, 2004 7:50 pm


-----------------------------------
Well i guse they do not expceted you to know everything, alot of poleop could have had no compsci corses during high school and/or not progaming excpicen at all. So that whould probly be a good way to weed out any one that has no progaming excpricne from going in to the highested 1st year level right away.

-----------------------------------
wtd
Fri Aug 20, 2004 8:00 pm


-----------------------------------
And, I suppose, to figure out which people are willing to take the time to figure it out, if they didn't already know.

Would it be wrong to post a solution in another language?  :)

I keep hacking stuff together to work my mind around the baroqe syntax of O'Caml.

-----------------------------------
Martin
Fri Aug 20, 2004 10:51 pm


-----------------------------------
Post it if you want. It's not a test or anything, and anyone at this point who's in CS 134 is stuck in CS 134. Also, Dan, it's required that you have ICS 3M to get into this course (and a teacher recommendation...a joke to get).

-----------------------------------
wtd
Fri Aug 20, 2004 11:30 pm


-----------------------------------
The module:

module RealEstate =
	struct
		let sum_list = List.fold_left (fun a b -> a +. b) 0.
	
		class agent name =
			object(self)
				val mutable commissions = []
				
				method get_name = name
				method name_nil = name = ""
				
				method add_commission amount =	
					commissions 