Sample midterm problems, class functions

I have a midterm tomorrow and our professor gave us a sample midterm. I somewhat know how to do these 2 problems (they are intertwined), but I would like to know completely how to do them. If anyone could do them and kind of explain the problems a little bit it would be very much appreciated. Thank you in advance.

Problem 3 = http://img534.imageshack.us/img534/9997/problem3.jpg
Problem 4 = http://img405.imageshack.us/img405/6345/problem4.png

p.s The coding is not very advanced. I just don't fully know how to do it.
which ones are troublesome?
The coding is not very advanced. I just don't fully know how to do it.


Then I guess you're going to fail...

Seriously, if you want someone to explain how to do your exam, find a paid tutor
Not "going to". he most probably "has".
Last edited on
Topic archived. No new replies allowed.