Question: Using C++, Write a program asking the user to enter two names. Compare and if they are the same, display a message saying so. Otherwise
Using C++,
Write a program asking the user to enter two names. Compare and if they are the same, display a message saying so. Otherwise display them in alphabetical order.
Hint: Use strcmp.
Sample Run
Please input the first name
San Francisco
Please input the second name
Los Angeles
The names are not the same:
Los Angeles
San Francisco
===================
Please input the first name
San Jose
Please input the second name
San Jose
The names are the same
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
