CS100 Lecture Notes - Lecture 8: Prime Number, Natural Number
Document Summary
Keep them in your labs folder, with the name liiqj for lab ii, question j. Download the headers for each function from the le labinterface08. rkt linked off the. After you have completed a question (except class exercises), including creating tests for it, you can obtain feedback by submitting it and requesting a public test. Follow the instructions given in the style guide. For example, (make-sqr-al 1 2) will yield (list (list 1 1) (list 2 4)): optional open-ended questions in the game war , two players compete to collect cards. In each turn, the topmost cards in each stack are compared, with the winner (the player with the higher card value) collecting both. If there is a tie between card values, each player keeps their own card. Create a function war that consumes two lists of cards, hand1 and hand2, and produces the contents of hand1 at the end of a round.