Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Pig latin translator in C programming sudo code help. Will this outline print out translated pig latin from a word inputted from the user? I

Pig latin translator in C programming sudo code help.

Will this outline print out translated pig latin from a word inputted from the user? I am typing out an outline of sudo-code for a pig latin translater in C programming. Am I missing anything to make this work?:

Data:

char string word [80]

piglatin[80] = ""; initailze for empty string to get NULL at begining of string

char two [3] for first two letters initialized for empty string

char one [2] for first letter initialied for empty string

Algorithem()

print directions for user

have user input a sentence

strncpy variable two, from the word, first two letters

assign array two[2] with NULL character

strncat copy into array one, from the user word, copy one character

do

if check if char one word equals a, e, i, o, u

if word starts with vowel OR

has no vowels + "way"

print word

else for z = first vowel to end word

print char at i

for i = 0 to vowel spot -1

print char at i

else if strcmp TH OR CH OR SH OR PH OR WH OR QU equals 0

while the word is not a, e, i, o, u. '\0'

i equals i incremented to find the first vowel

if the vowel isin the first spot or end of word

print word plus "way"

else

print-middle stuff(for), star characters (for), "ay"

while word is not equal to 'stop'

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

Advanced MySQL 8 Discover The Full Potential Of MySQL And Ensure High Performance Of Your Database

Authors: Eric Vanier ,Birju Shah ,Tejaswi Malepati

1st Edition

1788834445, 978-1788834445

More Books

Students also viewed these Databases questions

Question

2. Define communication.

Answered: 1 week ago

Question

4. Develop a self-directed learning module.

Answered: 1 week ago

Question

2. Provide recommendations for effective on-the-job training.

Answered: 1 week ago