Write a program that prompts the user to enter three strings. Compare the String objects lexicographically and print the middle-valued

Question:

Write a program that prompts the user to enter three strings. Compare the String objects lexicographically and print the middle-valued string. For example, if the three strings were "abcd", "wxyz", and "pqrs", the program would print "pqrs". Be sure and test your code by giving it input data that tests every path through your code.

This problem has been solved!


Do you need an answer to a question different from the above? Ask your question!

Step by Step Answer:

View Solution
Create a free account to access the answer
Cannot find your solution?
Post a FREE question now and get an answer within minutes. * Average response time.
Question Posted: March 21, 2018 05:05:07