Question: C Programming Language only please. Your help is greatly appreciated. Will give thumbs up for quality work. Lab 8 (this is to be turned in)

C Programming Language only please. Your help is greatly appreciated. Will give thumbs up for quality work. C Programming Language only please. Your help is greatly appreciated. Will givethumbs up for quality work. Lab 8 (this is to be turned

Lab 8 (this is to be turned in) Palindrome is a string that is the same as backwards or forwards otto ababa noon ababbbbaba In this lab we will work with strings (so we will be using character arrays). 1. Write a program that reads two strings strl and str2 from the keyboard 2. Print both strings 3. Write a function computeLength and call this function in main to compute the length of the string strl and str2. 4. if the string strl is of length 1 the program will terminate 5. if the string str2 is of length 0 the program will terminate Next A prefix of a string is a nonempty string that is an initial segment Example moondog has prefixes of moo, m, moon, mo, moond,. 6. Write a function isPrefix (str1, str2) that returns 1 if the string str2 is a prefix of strl substring of strl then isPrefix should return a ONE , if not return a ZERO. See class discussion for the definition 7. Call this function with strl and str2 in main and output your result 8. Now write a function isPalindrome(str) that returns a l if str is a palindrome and 0 otherwise. To get full credit use isPrefix in your function 9. Call your function is Palindrome (str1) 10. Output the correct conclusion either PALINDROME or NOT PALINDROME You are NOT to use any standard library functions except for I/O functions

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!