Question: Write a program that prompts the user to enter two strings and prints out the match score to indicate how similar the words are. If

 Write a program that prompts the user to enter two strings

Write a program that prompts the user to enter two strings and prints out the match score to indicate how similar the words are. If the two strings are different lengths, then you should print a score of 0. Otherwise, it the two strings are the same length, the score printed should be the number of characters in corresponding locations that are the same. For example, the match score between "home" and "host" should be 2. Enter the first string: home Enter the second string: host Match score: 2 And the match score between "paper" and "caper" should be 4. Enter the first string: paper Enter the second string: caper Match score: 4 Need to create a user defined tunction named match_score, and apply function calling

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 Programming Questions!