posted 11 years ago
hi Irving,
first of all: contrary to every BASIC I know of, you must use "break" for each "case" statement,
otherwise things go horribly wrong.
Second: suppose you have a date in January, i.e. month = 1;
do you think it is right to set 'daysInMonth" to 31 (in your switch routine)?
Third: see line 06. Do you think you are using the correct variable here?
Lastly, what is the idea behind the "while" loop in line 26?
I suggest you put some System.out.println(variable) at handy places to see how your variables develop.
Greetings,
Piet
Edit: I just notice that the while-loop in line 26 is part of the for-loop. I thought is was outside.
Nevermind, just use the println() advice and you'll see what is happening.
There are three kinds of actuaries: those who can count, and those who can't.