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 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
Get step-by-step solutions from verified subject matter experts
