Question: In C++ please. thank you. Write a program that takes in three strings and outputs the one occurring in the middle in alphabetical order. The

In C++ please. thank you.In C++ please. thank you. Write a program that takes in three

Write a program that takes in three strings and outputs the one occurring in the middle in alphabetical order. The input will be three words all on the same line, separated by at least one space, and the words will not contain spaces inside. You may assume the words will all be unique (no duplicates). Ex: If the input is: dalmatian poodle chowchow the output is: dalmatian because "dalmatian" comes after "chowchow in alphabetical order, and it comes before "poodle" in alphabetical order. Hint: There are three possibilities: the middle string is the first word, or the second word, or the third word. You only need to check for two of the three cases (not all three). For example, if it's not one of the first two cases, it must be the third case. 452458.3172694, ox3zoy 7

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!