You have a number of clients for your consulting firm To keep track of them in a
ID: 3634123 • Letter: Y
Question
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 #includeRelated Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.