« first day (4410 days earlier)      last day (574 days later) » 

 
3 hours later…
 
1 hour later…
8:44 AM
I wonder if SO's sister site softwareengineering.stackexchange.com would be more suitable? — k314159 11 secs ago
 
9:06 AM
Please consider to edit your question accordingly to the SO guidelines. For this purpose have a look at TOUR, How to Ask and How do I ask and answer homework questions? Open letter to students with homework problemsfantaghirocco 50 secs ago
 
 
2 hours later…
10:45 AM
If you want help with your homework, please edit your question to show what you've come up with so far, and explain why it isn't working the way you expected it to. See also How do I ask and answer homework questions? and Open letter to students with homework problemsKlaus Gütter 58 secs ago
 
 
2 hours later…
 
10 hours later…
11:26 PM
@MarsAtomic less nesting, easier to understand error handling, often referred to as "return early pattern" or similar - softwareengineering.stackexchange.com/questions/18454/…zapl 32 secs ago
 

« first day (4410 days earlier)      last day (574 days later) »