Re: [racket] HTDP 5.1.5

2011-01-31 Thread Jeremy Duenas
Thank you so much. I was able to figure it out. I don't know why I didn't think of utilizing the symbol=? After re-reading the error and not over thinking it I was able to see what I needed to do Jeremy D. Duenas 714.864.9686 On Mon, Jan 31, 2011 at 8:25 AM, Jeremy Duenas wrote:

[racket] HTDP 5.1.5

2011-01-31 Thread Jeremy Duenas
Ok so I wrote and compiled my code: [code] ;;check-color: symbol symbol symbol symbol -> symbol ;;consumes four colors. 1 player picks two colors, the 2nd player guesses the colors. check-color simulates the 1st players checking action. It consumes four colors. The 1st two arguments to check-color

[racket] Exercise 5.1.3 HTDP

2011-01-30 Thread Jeremy Duenas
*Exercise 5.1.3.* Develop the function check-guess3. It implements a larger portion of the number guessing game of exercise 5.1.2 than the function check-guess. Now the teachpack hands over the digits that the user guesses, not

Re: [racket] HTDP Chapter 4

2011-01-30 Thread Jeremy Duenas
This is no longer an issue. After checking the website, the problem was that in the Kindle edition of HTDP they leave out the ( < ) symbol. so when trying to compile ( < 4 5) I was getting an error because the book was telling me the syntax was ( 4 5). After realizing that I am actually getting it

[racket] HTDP Chapter 4

2011-01-29 Thread Jeremy Duenas
I am trying to work on the examples in Chapter 4 of HTDP where they are talking about Boolean expressions, and every time I try to create a function to do this(i.e. example 4.2.1) I keep getting errors. Even if I input the functions given to me in the book I get errors. Is there something that I ne

[racket] Exercise 3.1 HTDP Help

2011-01-25 Thread Jeremy Duenas
I am a beginner to programming and where I know I have the most problems is just trying to understand the math behind what I am trying to do. For example I am working through the exercise 3.1.1 in HTDP. It states "make up examples for each of the functions. Determine how many attendees can afford a