[Tutor] if-else statements
dyoo at hkn.eecs.berkeley.edu
Fri Oct 14 20:22:09 CEST 2005
> I'm having some trouble with my if, else statements.
Ok, let's pause for a moment: it seems like you're having problems with
more fundamental problems than just simple if/else statements. In the
past questions you've written:
you haven't really responded back in a way that helps us understand why
you're getting stuck. Let's have some give and take here. Is there
something you're not understanding from the other people's replies? If
Otherwise, it really does sound like you're just pushing your homework on
us. The jist of your questions right seem to be "This program doesn't
work: help me fix it." This is not really interesting to us. We really
want to help you get unstuck, but we don't want to do your homework.
> For some reason, the months that have 31 days work fine, but the months
> that have 28/30 do not work.
How do you know that?
Show us why you think there's a problem in the program. We have our own
opinions, of course, but it'll be very helpful if you try explaining how
you're thinking this through. Why do you think that the program is buggy?
More information about the Tutor