Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C Program compaitabile with visual studio please. Good answer will be rated. The following is the content of the text file PiglatinIn.txt go placidly amid

image text in transcribedimage text in transcribedimage text in transcribed

C Program compaitabile with visual studio please. Good answer will be rated. The following is the content of the text file PiglatinIn.txt

go placidly amid the noise and haste and remember what peace there may be in silence as far as possible without surrender be on good terms with all persons speak your truth quietly and clearly and listen to others even the dull and the ignorant they too have their story if you compare yourself with others you may become vain or bitter for always there will be greater and lesser persons than yourself enjoy your achievements as well as your plans be yourself especially do not feign affection beyond a wholesome discipline be gentle with yourself you are a child of the universe no less than the trees and the stars you have a right to be here and whether or not it is clear to you no doubt the universe is unfolding as it should be cheerful strive to be happy 

:

Program 1 English to Pig Latin Introduction As most of you know, pig Latin is a language game played with English words. It is based on discriminating between vowels and consonants within the word. (Note that a "vowel" is any of the characters "a 'e', 'i', o', or 'u'. A "consonant" is any non-vowel character.) Any English word can be converted to its pig Latin equivalent by using the following algorithm: l) Starting from the first character of the word, locate the position of the first vowel. 2) If there is a consonant (or a string of consonants) to the left of that position, do the following: a) Extract the leading consonant(s) from the word. What remains will begin with a vowel by definition. Let's call that the "residual string." b) Append an "ay" to the end of the consonant string creating a "suffix string c) Append the suffix string to the end of the residual string using a hyphen. 3) If the first letter of the word is a vowel, then append "-way" to the end of the word. For example, let's say we want to convert the word "cabin" to pig Latin. Following the above steps, we do the following: 1) We locate the position of the first vowel. This is the 'a' that occurs at index 1 in the string (i.e., it is the second letter in the string). 2) Since there is a leading consonant in this case, "c', it is removed from the word creating the residual string abin a) We take the consonant, c', append an "ay" to it, creating the suffix string cay b) We append that to the end of the residual string using a hyphen

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

Recommended Textbook for

Online Market Research Cost Effective Searching Of The Internet And Online Databases

Authors: John F. Lescher

1st Edition

0201489295, 978-0201489293

Students also viewed these Databases questions