Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Here is the text from the pigLatinIn.txt file. I am using XCode and I can not get my input file to be found. pigLatinIn.txt: go

image text in transcribed

Here is the text from the pigLatinIn.txt file. I am using XCode and I can not get my input file to be found.

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
Assignment For this assignment, you will write a function that converts a single English word to its pig Latin equivalent. That function should have a header as follows char * convertToPigLatin (char * engStr, char * pLatinStr) You'll note that it takes two char * as input and returns a char *, as expected. The two inputs are pointers to the English string and the converted Pig Latin string respectively. The return value should be a pointer to the Pig Latin string. That return value can then be assigned to a variable and used to print out the converted string, either to the console or to a file Your program should then perform the following steps: Open a file for input called pigLatinIn.txt, which will be provided to you. This file will consist of one English word per line 1) 2)Open a file for output called pigLatinOut.txt. 3) Your program will then read the input file, use the convertToPigLatin () function to determine the pig Latin equivalent to the word, then write the following to the output file: English word Pig Latin Word cabin abin-cay apple-way apple 4)Print out the results in all lower case Deliverables Please submit your C source code file and a copy of the output file

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

Information Modeling And Relational Databases

Authors: Terry Halpin, Tony Morgan

2nd Edition

0123735688, 978-0123735683

Students also viewed these Databases questions