Question: Write a Scheme function int-to-words that takes a nonnegative integer between 0 and 99, inclusive, as a parameter and returns a list of words corresponding

 Write a Scheme function int-to-words that takes a nonnegative integer between

Write a Scheme function int-to-words that takes a nonnegative integer between 0 and 99, inclusive, as a parameter and returns a list of words corresponding to the integers reading in English. Make your function as short as possible; i.e., don't write a COND statement with 100 tests. Example calls to your function are given below: (int-to-words 13); should return (thirteen) (int-to-words 42); should return (forty two) Note, in order to simplify things, we are not expecting dashes in the output (i.e., 42 Ls output as forty two not forty-two)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!