Write a program that prompts the user to input a string and then outputs the string in Pig Latin. Create the program using a Linked List(C++).
Study the scenario and comple the question(s) thatb follows:
Convert Strings to Pig Latin using a linked list PigLatinStrings converts a string into a Pig Latin, but it processes only one word. If a word ends with a panctuation mark in the Pig Latin form,put the punctuation at the end of the string. For example: "Hello!" becomes "ello-Hay!" |
Write a program that prompts the user to input a string and then outputs the string in Pig Latin. Create the program using a Linked List(C++).
a. Build a linked list as template either forwards or backwards.
b. The linked list should have a function that prints the linked list. This function should be a recursive function.
c. Your program must store the characters of a string into a linked list and use the function Rotate to remove the first node of the linked list and put it at the end of the linked list.
Trending now
This is a popular solution!
Step by step
Solved in 2 steps