Question: OBJECT ORIENTED PROBLEM 3 Problem 3 (15 points Integers to Text. Implement a function called int.to.text with a single parameter N, which is an integer
Problem 3 (15 points Integers to Text. Implement a function called int.to.text with a single parameter N, which is an integer between 0 and 1000 (inclusive). The function returns a string that is the English text equivalent of that integer. For example, int_to.text(89) should return the string 'eighty nine', int_to_text() should return 'seven', int_to_text(14) should return 'fourteen and int_to_text(621) should return 'six hundred twenty one Important: Make good use of lists and if/elif statements to implement your function com- pactly. If you have a very large number of if/elif statements or if you have extremely long lists (length longer than 10, say) in your code, you are on the wrong track. For instance, muy implementation has just five if-else clauses. SUBMISSION GUIDELINES Implement the first problem in a module called problemi.py, the second one in module called problem2.py, and the third one in a module called problem3.py. Your name and RUTD should appear as a comment at the very top of each file. Test each of your programs thoroughly before submitting your homework. When you are ready to submit, upload your files on Salonas follow 1. Go to the "Asigutab of the Causite for this coun 2. Click on "Programming Assignment #1" under Homework Antento 3. Downlow the homework document (hul.pdf). Carefully read the problem description in the homework document before creating the module for each problem. 4. Use this link to www your work files problemi.py, problem2.py, and problem3.py) when you are rewly to wait
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
