Question: Write a script file that will accomplish the following: a) Prompt the user to enter a word as a character array. b) First test

 Write a script file that will accomplish the following: a) Prompt the user to enter a word as a character  

Write a script file that will accomplish the following: a) Prompt the user to enter a word as a character array. b) First test that the user correctly entered a character array - if NOT, display this message to the user and end the program: You did not properly enter a word as a character array. Try again. c) If they did enter a valid input, create the reverse of the word using one or more loops. d) Test whether the word is a palindrome - meaning that the word spelled forwards and backwards is the same. e) Display a formatted message to the user, matching the format of the example below. Test that your code will work with the words 'racecar' and 'tomcat' The word racecar is a palindrome! The word tomcat is not a palindrome. Generate your flowchart and pseudocode for this problem

Step by Step Solution

3.42 Rating (152 Votes )

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 Programming Questions!