Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

required to use Microsoft Visual C++ for programming You have a number of client

ID: 3634144 • Letter: R

Question

required to use Microsoft Visual C++ for programming

You have a number of clients for your consulting firm To keep track of them in an orderly manner, you need a program that can arrange them alphabetically by name or by business type. Write such a program using a sort function. The program inputs are: the client names and business types from an Input file: the name and the business type are separated by at least two blank spaces use the following data as the input file. the choice of sorting according to name or business type The output specification is to print the sorted the data to the screen depending on the user choice as stated above.

Explanation / Answer

Try using 'for' statements to store the words in the input file into character arrays. then sort them by ASCII value, using an if statement to check the second and third spots when the letter is the same. Have you looked up string comparisons? Use toupper to limit the amount of checking, but don't forget to use #include