Question: Write a program that prompts the user to enter a number between 1 and 5 and prints the number in words. For instance, if 1

 Write a program that prompts the user to enter a number

Write a program that prompts the user to enter a number between 1 and 5 and prints the number in words. For instance, if 1 is the input, the output should be One. If the user enters a different number than 1 to 5 the program should display the message: Entry is out of range. Provide the code that you used. Hint 1: Try to put the number in words into a List Hint 2 use the ndex of the List for each number n words toco, pare wth the user nput

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!