![]() |
CMSC104Problem Solving & Computer Programming |
Make sure that you follow all the coding standards
Do the following to create the Number to String Conversion Program :
Develop an interactive application in which the user enters a number less than 1000. Read the input into a string using the fgets() function. Convert the number to the word representation of the value and print it out.
You should have at least two functions:
getInput - return the number as a char * convertToString - return the word sequence as a char *
Reference the code example :WholeName.c Weekdays.c
From Linux on the GL machine:
Write a C program (see below) and save it in a file called strings2.c in your ./CMSC104/cw4 directory Compile the program:
gcc -o strings2 strings2.c
Run the program to make sure it works:./strings2
Use the SUBMIT utility to turn in the homework.submit cs104_grasso cw04 strings2.c strings2