Re: [racket-users] New to racket, help with coursework question

2020-04-19 Thread Suz Renae
> To be more concrete, suppose I tell you the year is 2234 and the month is > 4 and the result of (vector-ref months x) is 30. How many days would that > month have? Can you explain how to compute the answer for each of the test > cases below? > > John Clements > > >

Re: [racket-users] New to racket, help with coursework question

2020-04-19 Thread Suz Renae
be able to replace the "??"s in your > function skeleton: > > (define (number-days-in-month year-number month-number) > (cond > [ > > As for the conditional in the function body, go back to the question I > posed above: why are you given a year-number i

[racket-users] New to racket, help with coursework question

2020-04-19 Thread Suz Renae
I am new to racket (first year student) and since class has been pushed to online only, I am having a harder time. We are currently working on vectors and hash tables. I feel like I keep overthinking it and keep getting stuck. I know that the first parameter in the function will be the year