Question: Write a program that asks the user to enter two phrases on and outputs one of four responses:Be sure to INCLUDE the program documentation and

Write a program that asks the user to enter two phrases on and outputs one of four responses:Be sure to INCLUDE the program documentation and to follow the Program Submissions Guidelines document from the readings last
week.
Do NOT use methods or procedures that are beyond what we have covered in class so far -- including loops, user defined functions, etc.
You will receive a score of 0 if you do.
Write your program directly in the code editor below. Click on the "Tutorial" button to the right to understand how to use the editor and
console. Click on the "Run" button to execute the code and interact with the console window below the editor. Make sure that you follow
the input and out formats.
Write a program that asks the user to enter two phrases on and outputs one of four responses:
The phrase phrase one is found within phrase two
The phrase phrase two is found within phrase one
Both phrases match
No matches
Hint: Use the membership operator 'in'.
Ex: If the input is:
Enter phrase 1: apple
Enter phrase 2: apple tree
the output is:
The phrase apple is found within apple tree
Ex: If the input is:
Enter phrase 1: Valencia orange tree
Enter phrase 2: orange
the output is:
The phrase orange is found within Valencia orange tree
Ex: If the input is:
Enter phrase 1: apple
1) The phrase phrase one is found within phrase two
2) The phrase phrase two is found within phrase one
3) Both phrases match
4) No matches
Hint: Use the membership operator 'in'.
 Write a program that asks the user to enter two phrases

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!