Question
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
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