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