So basically I worked really hard on this code in my CS150 class and now I need to change it to a class, and I thought OK that\'s simple enough, but I cant seem to figure it out at all! I know I can just make all of the variables inside the class public, but that\'s not what my professor wants. I am supposed to implement the private variables. I tried making the \"letter\" and \"letterCount\" variables private and I created some void functions under the public part, I think I might have been on the right track with that but I wasn\'t sure how to modify the rest of my code in order to get it to run. Here\'s the original code, still in the struct format. Any help would be GREATLY appreciated. P.S. my professor said \"make the member variables private, and impliment functions to manage those private variables, such as getter and setter functions.\" so that might help you understand whats expected. Thanks! I NEED TO GET RID OF THE STRUCT ALLTOGETHER! my class should be set up like this: class { private: letter letterCount public: //functions to controll the private variables such as... void getletter void getlettercount } I just dont know how to impliment that in my code, and what to write in those functions in the class. Thanks for your help! [code] #include #include #include #include using namespace std; //Struct definition struct letterType { char letter; int letterCount; }; //Function to open I/O files void openFile(ifstream& inFile, ofstream& outFile); //Function to fill the array of structs and keep track of the amount of uppercase/lowercase letters void count(ifstream& inFile, letterType letterList[], int& totalBig, int& totalSmall); //Function to print the letters, the occurences, and the percentages void printResult(ofstream& outFile, letterType letterList[], int totalBig, int totalSmall); //Function to create an output file that contains programmer info void Info (ofstream& outputFile); int main() { ofstream fout; ifstream input; //object to read the text ofstream output; //object to write the results int totalCapital = 0; //variable to store the total number of uppercase int totalLower = 0; //variable to store the total number of lowercase letterType letterObj[52]; //array of structs of type letterType to hold the information //Input and process data Info (fout); openFile(input, output); count(input, letterObj, totalCapital, totalLower); printResult(output, letterObj, totalCapital, totalLower); //Close files input.close(); output.close(); return 0; } void openFile(ifstream& inFile, ofstream& outFile) { string inFileName; string outFileName; cout << \"Enter the name of the input file: \"; cin >> inFileName; inFile.open(inFileName.c_str()); cout << endl; cout << \"Enter the name of the output file: \"; cin >> outFileName; outFile.open(outFileName.c_str()); cout << endl; } void count(ifstream& inFile, letterType letterList[], int& totalBig, int& totalSmall) { char ch; //Loop to initialize the array of structs; set letterCount to zero for(.