Question: 3 . Write in full words: ( 1 0 Points ) On legal and financial documents, like cheques, numbers must sometimes be written in full

3. Write in full words: (10 Points)
On legal and financial documents, like cheques, numbers must sometimes be written in full words.
Example: 283 must be written as two-eight-three. Write a predicate full_words/1 to print (non-
negative) integer numbers in full words.
Sample Run:
?- full_words(283).
two-eight-three
?- full_words(2018).
two-zero-one-eight
File Name: fullWords.pl

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 Programming Questions!