Search

Custom Search

Thursday, November 25, 2010

computer science assignment



you wrote the function words() which chops a sentence
into words and stores them into a 2D char array.
In this homework, you are required to write a function that takes a
string as its input, chops the sentence into words, and for each
word, capitalizes the rst letter and forces all other letters to be
lower case. Fox example, if the input parameter is `this is an
american TRADITION', the return value of your function should
be a valid 2D char array:
This
Is
An
American
Tradition
Your function will call words(), and the words() function can be
found on P. 283 of your textbook. Submit 3 les: words.m, your
function le, and a driver program that has input() function to get
input sentence from user.

No comments:

Post a Comment