Write a program that reads two phrases on separate lines and outputs one of the four responses: 1) Phrase one is found w

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899604
Joined: Mon Aug 02, 2021 8:13 am

Write a program that reads two phrases on separate lines and outputs one of the four responses: 1) Phrase one is found w

Post by answerhappygod »

Write A Program That Reads Two Phrases On Separate Lines And Outputs One Of The Four Responses 1 Phrase One Is Found W 1
Write A Program That Reads Two Phrases On Separate Lines And Outputs One Of The Four Responses 1 Phrase One Is Found W 1 (22.18 KiB) Viewed 27 times
Ex: If the input is:
the output is:
Write a program that reads two phrases on separate lines and outputs one of the four responses: 1) Phrase one is found within phrase two 2) Phrase two is found within phrase one 3) Both phrases match 4) No matches Hint: Use the string function find(). Ex: If the input is: fire firetruck the outputis: Eire is found within firetruck Ex: If the inputis: the green grass grows green grass the output is: green grass is found within the green grass grows Ex: If the inputis: pick a card pick a card the output is: Both phrases match
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply