Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Question #3-String manipulation (7pts) In this question you are asked to write a program which transforms any word entered by the user into its equivalent
Question #3-String manipulation (7pts) In this question you are asked to write a program which transforms any word entered by the user into its equivalent in "Nancy Latin", which is a variation of Pig-Latin. Here is how your program is to behave: 1. 2. 3. 4. Displays a welcome message of your choice. Prompts the user for a word and read it. Displays the number of characters, as well as the first and last characters of the word. Next, create the equivalent word in Nancy-Latin and display it. Here is how to convert to Nancy-Latinas follows: a. b. c. d. e. The first letter of the new word is the last letter of the entered word Followed by the letters ncy Followed by the original word minus the 1st and last letter Followed by nan Followed by the 1st letter of the original word. Comp 218/Winter 2018 Page 3 of 4 Assignment #1 Here are a few examples: i. if the original word is dog, in Nancy-Latin it is gncyonand ii. If the original word is Nancy, in Nancy-Latin it is yncyancnanN 5. Finish off by displaying a closing message. You can assume that the user enters a words with at least 2 characters
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