Question
Hello, can someone help me with this code. Please comment the code so I can understand it. Thank You. QUESTION: Create a menu for a
Hello, can someone help me with this code. Please comment the code so I can understand it. Thank You. QUESTION: Create a menu for a program as shown below. Option 1 will request a string from the user. This string may contain any character on the keyboard, both upper and lowercase letters (for now the strings are limited to a length of 50 characters). Option 2 will convert all elements of the string to lower case. Option 3 will remove all non-letter elements. Option 4 will determine if the string is a palindrome. Option 5 will display the string to the screen. Option 6 exits the program. If the user enters something other than 1 6 there should be an error displayed to the screen. All the menu options dealing with strings require an offset to the input string to be passed to a procedure. At the end of every string procedure, the original string will reflect the changes caused by a given option. For example: If the user input string is : a#d A&B. After Option 2 is executed: The original string will reflect the changes and be: a#d a&b. After Option 3 is executed: The string will reflect the changes and be: adab A string must be entered before any string modifications can take place. You must create your own procedures to copy a string, compare a string, convert a string to uppercase, clear a string. Use of Irvine Library functions to copy a string or compare a string is specifically not allowed for this program. You may only use the following Irvine Library string operations: ReadString and WriteString. All other non-string Irvine Library procedures are available for your use. Do not use DumpRegs except for troubleshooting. DumpRegs should not be in a program submitted for grading. Extra credit. User can enter whatever they want. And the palindrome check must be case sensitive. So RACEcar is not a palindrome but RacecaR is Menu Enter a string Convert the string to lower case Remove all non-letter elements Is it a palindrome? Print the string Quit
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