Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please write this program in C. PAY CLOSE ATTENTION to detail. Thank you so much! Description READ THIS ASSIGNMENT CAREFULLY. THERE ARE A LOT OF

Please write this program in C. PAY CLOSE ATTENTION to detail. Thank you so much!

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

Description READ THIS ASSIGNMENT CAREFULLY. THERE ARE A LOT OF DETAILED REQUIREMENTS. Using C, you are going to build a program that implement a translator between English and a modified version of pig Latin. Your program should first display a menu asking the user if they wish to translate from English to pig Latin, translate from pig Latin to English, or terminate the program. If the user wishes to perform a translation, prompt the user for a word or phrase, perform the translation, and output the result. As usual, you should perform as much input validation as you can. Translate from English to Pig Latin A word is a sequence of non-white space characters separated by one or more white-space characters If a word begins with a consonant letter, where a consonant letter is defined as an English letter OTHER THAN 'a','e', 'i', 'o', and 'u', move the first letter of the word to the end of the word, then append "ay". Maintain the former capitalization of the word. For example: "pig" becomes "igpay" "Banana" becomes "Ananabay" "cheers" becomes "heerscay" "Yummy" becomes "Ummyyay" "caw" becomes "awcay" "wow" becomes "owway" "hello!" becomes "ello!hay" If a word begins with a vowel letter, where a vowel letter is defined as 'a', 'e', 'i', 'o' and 'u', simply append "way" to the word. Maintain the former capitalization of the word For example: "eat" becomes "eatway" Are" becomes" "aay" becomes "aayway Areway

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions