hello my output is wrong- i want to have “hello how are you” turn into having the fist character put at ends of words and ‘a’ and ‘y’ added at end basically pig latin. I want all my variables and loop

We can write your essays! Let our essay writing experts help you get that A in your next essay. Place your order today, and you will enjoy it. No plagiarism.


Order a Similar Paper Order a Different Paper

hello my output is wrong- i want to have “hello how are you” turn into having the fist character put at ends of words and ‘a’ and ‘y’ added at endbasically pig latin.I want all my variables and loops to stay basically the same just might need help with logic.please dont add any additional libs i need keep syntax simple

-should really only take someone 5-10 mins to help

this is in c++ coding language fyi

i accidently put an exta } at end of code please ignore – code runs

my current output is hhlo if user puts hello

hello my output is wrong- i want to have “hello how are you” turn into having the fist character put at ends of words and ‘a’ and ‘y’ added at end basically pig latin. I want all my variables and loop
#include #include using namespace std; int main() { //set vars const int size =81; char inStr[size]; char outStr[size + 20 ] = “”; int currentInIndex = 0; int currentOutIndex = 0; char firstChar = 0; cout << " Enter a sentence and I will translate it to Pig Latin: "; cin.getline(inStr,size); int length = strlen(inStr); //test for errors if (length>size) { cout << "Error"; return 42; } firstChar = inStr[0]; //parse through arrays for (currentInIndex =0; currentInIndex

Writerbay.net

Everyone needs a little help with academic work from time to time. Hire the best essay writing professionals working for us today!

Get a 15% discount for your first order


Order a Similar Paper Order a Different Paper