For Each Of The Problems Below You Are To Consider Making A Function To Solve The Problem As Before State The Purpose 1 (44.14 KiB) Viewed 39 times
For each of the problems below you are to consider making a function to solve the problem. As before, state the purpose of the function in your own words. Next specify input that is needed for the function to complete the task, and state what input should be passed to the function as parameters and what would be acquired inside the function using the input function. Specify the expected output and state if the output will be returned to the function call or be sent to the monitor. Finally give the step by step process that will obtain the output from the input (the algorithm). In addition to these 4 items also specify test data that can be used for each function. Remember to describe your steps in enough detail so someone other than you could follow your algorithm and solve the problem. Also do not write any actual code.
Program 3: A word is considered to be a palindrome if it is the same spelled forwards or backwards. For example racecar and elle are palindromes whereas everywhere is not a palindrome. Describe a function that would take a word and determine if it is a palindrome. Your process may not create another word that is the reverse of the given word and should not repeat steps more times than needed.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!