Question: Write a program containing a function convertToNumbers that accepts a string containing only numbers in the textual form such as one two three four five

 Write a program containing a function convertToNumbers that accepts a string

Write a program containing a function convertToNumbers that accepts a string containing only numbers in the textual form such as one two three four five six seven eight and nine. Assume you only can get up to nine. The function convertToNumbers should return a string containing numeric form of the numbers in the input string. For example, if the input string is "six seven one", your function should return a single string containing "6 7 1" or "671", whatever you feel easy

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!