Question: Overview For this challenge activity you will be writing a program the asks the user to enter a series of strings. You will then perform
Overview
For this challenge activity you will be writing a program the asks the user to enter a series of strings. You will then perform several calculations on those strings and print out the results.
Follow the directions closely. In several places you could solve the problem multiple ways but part of your grade will be based on using the required approach. For example, There are methods that require you to use recursion or to allocate an array on the stack. Failure to do so will not earn you full credit.
Task : Ask user for input
Your first task is to collect user input and store it in a global array. First, prompt the user to enter a string max characters and store the result in the global array. Do not include the newline character as part of the string. I recommend that you truncate the newline character right after reading the string. Continue to allow the user to enter a string up to total strings If the user enters an empty string ie a blank line then stop the input loop early ie do not continue to prompt for more strings
Warning: If a string that is more than ~ characters long and is not a palindrome is entered, the kpalindrome procedure may take a long time to complete.
Begin working in the file template caasm provided in the ca folder.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
