- Sep 2, 2002
- 347
- 0
- 0
I'm working on an assignment for a programming class and the teacher assigned a really silly problem. He wants us to create a function that takes a integer number between 0 and 500 and outputs it in English. For example, 321 becomes three hundred twenty one. I've basically got the program working and I tested all possibilities using a loop.
Now the question I have is - is there any formatting code that would automatically make the first letter of the proceeding output capital? I don't think this really matters a big deal but it would just be something nice to have. To do this using the function, I would basically have to double or maybe triple the size. Should I just leave it as is in all lower case or maybe all uppercase? I know its a silly thing to be picky about but you never know what a teacher will find to take marks off for.
See code attached if you are curious. Also, while I'm sure people on this forum are great for providing help, are there any student-oriented programming forums/websites? Any other comments about the program are appreciated also.
Now the question I have is - is there any formatting code that would automatically make the first letter of the proceeding output capital? I don't think this really matters a big deal but it would just be something nice to have. To do this using the function, I would basically have to double or maybe triple the size. Should I just leave it as is in all lower case or maybe all uppercase? I know its a silly thing to be picky about but you never know what a teacher will find to take marks off for.
See code attached if you are curious. Also, while I'm sure people on this forum are great for providing help, are there any student-oriented programming forums/websites? Any other comments about the program are appreciated also.
