Answered step by step
Verified Expert Solution
Question
1 Approved Answer
#include #include #include using namespace std; const int SIZE { 1 0 } ; struct SentenceData { int numSwapped [ SIZE ] { } ;
#include
#include
#include
using namespace std;
const int SIZE;
struct SentenceData
int numSwappedSIZE;
string sentenceSIZE;
int total;
vector rvColors;
vector rvPhrases;
ofstream output;
string resultsOriginal;
string resultSwapped;
string colorFile "Colors.txt;
string sentenceFile "Sentences.txt;
string swapPhrasesFile "SwapPhrases.txt;
string outputFile "Out.txt;
;
void WriteHeader;
void AskForInputFilenamesstring& colorFile, string& sentenceFile string& phraseFile;
string AskForOutputFilename;
bool ReadColorsvector& rvColors, string filename;
bool ReadPhrasesvector& rvPhrase, string filename;
bool ReadSentencesstring sentences string filename, SentenceData pData;
bool WriteOriginalsSentenceData& data, int totalSentencesModified, string filename;
bool WriteResultsSentenceData& data, string filename;
int SwapColorsSentenceData& data;
void SayGoodbye;
#endif
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