Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a program, which will ask for and read in a line of text characters using a C-type string (an array of characters with an

Write a program, which will ask for and read in a line of text characters using a C-type string (an array of characters with an end-of-string mark denoting where the characters stop. The program will then determine if the line of text forms a palindrome and print whether it is or not. After printing this message, the program will ask for another line of text. The program will end when the line of text read matches the characters END (letters in all caps).

NOTES:

1)When testing if the string is a palindrome, an upper and lower case character will be considered a match. Only when checking for END is there a requirement for the case to be specifically upper case.

2)The maximum number of displayable characters in a line will be 80.

BONUS: Do the program without use of any str functions plus 10 points.

Please write this code for C program not c++ or java

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

What is Rule 203 of the Code of Professional Conduct?

Answered: 1 week ago

Question

4 How do Interpretive tasks help learners for Mediation?

Answered: 1 week ago