im a new Scheme user and i have some problems when practicing on the following questions:
Quote
1. convert strings to word, for example
(string-the-word " Hello, everyone. I need your help!")
and should return
(list "Hello" "everyone" "I" "need" "your" "help")
(string-the-word " Hello, everyone. I need your help!")
and should return
(list "Hello" "everyone" "I" "need" "your" "help")
where string-the-word recognizes a character string as its argument then returns a list of the words entered in the string.
also i have played around with string->list, string-append, and char-alphabetic? , but couldn't figure it out
________________________________________________
2. then i was writing some codes that compare the match words from two lists then return the the result in percentage of matches
(I used quotient for this)
for example,
Quote
(matches? (list "Hello" "Everyone") (list "Hello" "Everyone" "My" "Name" "is" "Drscheme"))
should return 33 (%)
where
(quotient (* 2 100) 6) = 33
the 2 stands for the number of word that matches to the list
and 6 is the total number of the word in the list
but i really have no idea how to do the rest...like how to join them together
can someone please help me with this
thanks very much!

New Topic/Question
Reply




MultiQuote




|