Answered step by step
Verified Expert Solution
Question
1 Approved Answer
For this assignment, we will move on to Chapter 8. In this chapter, we learn about using strings and string conversions in our coding. Obviously
For this assignment, we will move on to Chapter 8. In this chapter, we learn about using strings and string conversions in our coding. Obviously as you know, using and manipulating strings in any kind of code, whether it be command line coding or full on object oriented programming is a definite task. For this assignment, your program needs to ask the user to input a string or a sentence. When the user presses enter, the program will display the same sentence spelled backwards. That is all we really need to do. Fairly simple week this week. Now, for the extra credit. To get 5 points extra credit, do the above programming. At the end of your program though, program a check in the code to check to see if the sentence is a palindrome. This means that when you take the sentence and reverse it, it will spell the same thing. Tell me if the sentence is a palindrome or not. If you can successfully tell me that, I will give you 5 points extra credit. Since extra credit is just that...extra credit, I cannot provide help for the extra credit. I can provide help for the assignment. Good luck! Here is an example of the completed program without the extra credit. Enter a line of text: This is a test sentence for C Programming. This same sentence printed backwards is: gnimmargorP C rof ecnetnes tset a si sihT_
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started