Different views for different conditions

Kirpal Sachdev wrote:

I have the following questions:

That's homework, right?

The rules are, you have to make an attempt, and post part of it, with _your_ question about it. Don't just copy in your assignment verbatim!

(Also, your professor is doubtless teaching you to unit test as you go, right?)