Question: 1. (20 points) Implement a program that requests three strings from the user. Your program should concatenate the first two strings (stra + strb)

1. (20 points) Implement a program that requests three strings from the user. Your program should concatenate the first two strings (stra + strb) and compare the concatenated string with the third string (strc). If they are equal, your program should print, "The two strings are equal in the forward order", otherwise, the program should concatenate the two strings in the reverse order (strb + stra) and compare it with the third string and print, "The strings are equal in the reverse order". If this second test also fails, your program should print, "The two strings are not equal". Partial sample runs are shown below: Enter first string: Drop Enter second string: box Enter third string: Dropbox The two strings are equal in the forward order Enter first string: 113 Enter second string: box Enter third string: box113 The two strings are equal in the reverse order
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
