help

Using the supplied data file, read in a list of names into a string array, convert each name into proper case, sort the array in ascending order and then write out the updated array to a new file. A maximum of 100 names will be in the file. Name the identifiers as indicated in the Other section below.

Create functions to (1) convert a passed string into proper case (capitalize the first alpha character of a string and every alpha character that follows a non-alpha character); (2) sort the array of names (after it has been converted to proper case).

See the Output Layout section below. Provide an SDM and pre/post requirements.

INPUT:
varley, john james
forbes-kennedy, petra
sciabbarrasi, robert

OUTPUT:
Forbes-Kennedy, Petra
Sciabbarrasi, Robert
Varley, John James

User Defined Sort


78 names converted to upper case, sorted and stored into outfile.txt file.

Identifier Name Description
inputFile the name of the input file; infile.txt
outputFile the name of the output file; outfile.txt
MAXNAMES the maximum number of names to read in
nameArray an array of MAXNAMES names
Please note, that it is not a homework site. We won't do your homework for you. However we are always willing to help solve problems you encountered, correct mistakes you made in your code and answer your questions.

We didn't see your attemts to solve this youself and so we cannot correct mistakes you didn't made and answer questions you didn't ask. To get help you should do something yourself and get real problems with something. If your problem is "I don't understand a thing", then you should go back to basics and study again. As it is impossible to find deriviative of function without knowledge in ariphmetics, you cannot do more complex tasks in programming without clear understanding of basics
Topic archived. No new replies allowed.