+1443 776-2705 panelessays@gmail.com

Are you looking for Reliable Online Writing Services? We are Here For you. Our Professional Tutors Can Handle Any Kind of Assignment. Don’t Use Plagiarized Sources. Get Your Perfect Paper Today! Click Here To Order.

we need to write the program so that the user gets to solve the puzzle.You will also use header files and introduce classes into your program. We will follow the draft start to how to incorporate classes.Here are the requirements: In the file quotes.h, define the Quotes class: o   Quotes(string filename) // a constructor to load quotes from the named file into a vector o   The vector should be a field of the class so it will be saved for calls to getQuote() below o   string getQuote() // return random string from vector o   because the vector saves all quotes, you do not need to reload the quotes from the file translator.h defines the Translator class: o   As noted in class, we can use this class to both encrypt the quote as well as maintain the user’s current guesses as to how to decrypt the puzzle o   For the user’s current guess, we start with mapping every letter to itself o   To make this easier, define a default constructor (no parameters) which creates this mapping §  The mapping should be stored as a field of the Translator class o   Implement a function randomize() that does not return anything and randomizes the mapping of letters (creates the code – only use this once per puzzle to create it) §  This is pretty much going to be the code from genCode(), but the Translator class stores the array (or whatever you want to use for the mapping), so: don’t make a new array don’t return the array o   string translate(string txt) – this replaces encrypt() from hw4. As for randomize(), the main difference is that you are not passing in the code since Translator already has it §  call this each time the user changes the mapping for a letter o   Support a function to change the translator for one letter §  This is a new function to allow the user to update the current guess Your hw5.cpp now just has #include’s for the above header files and main() o   main() should display an opening message and prompt for a file name for the file of quotes o   The main loop should keep going until the user wants to quit §  Each iteration gets a new random quote, then lets the user try to solve it §  Solving involves changing the user’s guess at the code one letter at a time and showing the user the effect of the change §  It’s not required, but you can use a special non-letter character to quit before solving the puzzle – you can use exit(0) (defined in <cstdlib>) to quit the program, or the break statement to continue with a new puzzle §  If the user solves the puzzle (matches the quote successfully), congratulate them, ask if they want to continue, and if so, generate a new puzzle to solve A sample run is attached: Cryptoquote solving gamePlease enter name of file with quotes: quotes1.txtPuzzle: B awcl wyewio ewjplr pn ul onhlunri, ufp B oll jne B oanfyr awcl ullj hngl oklmbvbm. Ybyi PnhybjCurrent: B awcl wyewio ewjplr pn ul onhlunri, ufp B oll jne B oanfyr awcl ullj hngl oklmbvbm. Ybyi PnhybjEnter a letter to substitute: bEnter the letter to replace b: iPuzzle: B awcl wyewio ewjplr pn ul onhlunri, ufp B oll jne B oanfyr awcl ullj hngl oklmbvbm. Ybyi PnhybjCurrent: I awcl wyewio ewjplr pn ul onhlunri, ufp I oll jne I oanfyr awcl ullj hngl oklmivim. Yiyi PnhyijEnter a letter to substitute: lEnter the letter to replace l: ePuzzle: B awcl wyewio ewjplr pn ul onhlunri, ufp B oll jne B oanfyr awcl ullj hngl oklmbvbm. Ybyi PnhybjCurrent: I awce wyewio ewjper pn ue onheunri, ufp I oee jne I oanfyr awce ueej hnge okemivim. Yiyi PnhyijEnter a letter to substitute: oEnter the letter to replace o: sPuzzle: B awcl wyewio ewjplr pn ul onhlunri, ufp B oll jne B oanfyr awcl ullj hngl oklmbvbm. Ybyi PnhybjCurrent: I awce wyewis ewjper pn ue snheunri, ufp I see jne I sanfyr awce ueej hnge skemivim. Yiyi PnhyijEnter a letter to substitute: jEnter the letter to replace j: nPuzzle: B awcl wyewio ewjplr pn ul onhlunri, ufp B oll jne B oanfyr awcl ullj hngl oklmbvbm. Ybyi PnhybjCurrent: I awce wyewis ewnper pn ue snheunri, ufp I see nne I sanfyr awce ueen hnge skemivim. Yiyi PnhyinEnter a letter to substitute: nEnter the letter to replace n: oPuzzle: B awcl wyewio ewjplr pn ul onhlunri, ufp B oll jne B oanfyr awcl ullj hngl oklmbvbm. Ybyi PnhybjCurrent: I awce wyewis ewnper po ue soheuori, ufp I see noe I saofyr awce ueen hoge skemivim. Yiyi PohyinEnter a letter to substitute: eEnter the letter to replace e: wPuzzle: B awcl wyewio ewjplr pn ul onhlunri, ufp B oll jne B oanfyr awcl ullj hngl oklmbvbm. Ybyi PnhybjCurrent: I awce wywwis wwnper po ue soheuori, ufp I see now I saofyr awce ueen hoge skemivim. Yiyi PohyinEnter a letter to substitute: aEnter the letter to replace a: hPuzzle: B awcl wyewio ewjplr pn ul onhlunri, ufp B oll jne B oanfyr awcl ullj hngl oklmbvbm. Ybyi PnhybjCurrent: I hwce wywwis wwnper po ue soheuori, ufp I see now I shofyr hwce ueen hoge skemivim. Yiyi PohyinEnter a letter to substitute: fEnter the letter to replace f: uPuzzle: B awcl wyewio ewjplr pn ul onhlunri, ufp B oll jne B oanfyr awcl ullj hngl oklmbvbm. Ybyi PnhybjCurrent: I hwce wywwis wwnper po ue soheuori, uup I see now I shouyr hwce ueen hoge skemivim. Yiyi PohyinEnter a letter to substitute: yEnter the letter to replace y: lPuzzle: B awcl wyewio ewjplr pn ul onhlunri, ufp B oll jne B oanfyr awcl ullj hngl oklmbvbm. Ybyi PnhybjCurrent: I hwce wlwwis wwnper po ue soheuori, uup I see now I shoulr hwce ueen hoge skemivim. Lili PohlinEnter a letter to substitute: rEnter the letter to replace r: dPuzzle: B awcl wyewio ewjplr pn ul onhlunri, ufp B oll jne B oanfyr awcl ullj hngl oklmbvbm. Ybyi PnhybjCurrent: I hwce wlwwis wwnped po ue soheuodi, uup I see now I should hwce ueen hoge skemivim. Lili PohlinEnter a letter to substitute: wEnter the letter to replace w: aPuzzle: B awcl wyewio ewjplr pn ul onhlunri, ufp B oll jne B oanfyr awcl ullj hngl oklmbvbm. Ybyi PnhybjCurrent: I hace alwais wanped po ue soheuodi, uup I see now I should hace ueen hoge skemivim. Lili PohlinEnter a letter to substitute: cEnter the letter to replace c: vPuzzle: B awcl wyewio ewjplr pn ul onhlunri, ufp B oll jne B oanfyr awcl ullj hngl oklmbvbm. Ybyi PnhybjCurrent: I have alwais wanped po ue soheuodi, uup I see now I should have ueen hoge skemivim. Lili PohlinEnter a letter to substitute: uEnter the letter to replace u: vPuzzle: B awcl wyewio ewjplr pn ul onhlunri, ufp B oll jne B oanfyr awcl ullj hngl oklmbvbm. Ybyi PnhybjCurrent: I have alwais wanped po ve sohevodi, vup I see now I should have veen hoge skemivim. Lili PohlinEnter a letter to substitute: uEnter the letter to replace u: bPuzzle: B awcl wyewio ewjplr pn ul onhlunri, ufp B oll jne B oanfyr awcl ullj hngl oklmbvbm. Ybyi PnhybjCurrent: I have alwais wanped po be sohebodi, bup I see now I should have been hoge skemivim. Lili PohlinEnter a letter to substitute: hEnter the letter to replace h: mPuzzle: B awcl wyewio ewjplr pn ul onhlunri, ufp B oll jne B oanfyr awcl ullj hngl oklmbvbm. Ybyi PnhybjCurrent: I have alwais wanped po be somebodi, bup I see now I should have been moge skemivim. Lili PomlinEnter a letter to substitute: gEnter the letter to replace g: rPuzzle: B awcl wyewio ewjplr pn ul onhlunri, ufp B oll jne B oanfyr awcl ullj hngl oklmbvbm. Ybyi PnhybjCurrent: I have alwais wanped po be somebodi, bup I see now I should have been more skemivim. Lili PomlinEnter a letter to substitute: kEnter the letter to replace k: pPuzzle: B awcl wyewio ewjplr pn ul onhlunri, ufp B oll jne B oanfyr awcl ullj hngl oklmbvbm. Ybyi PnhybjCurrent: I have alwais wanped po be somebodi, bup I see now I should have been more spemivim. Lili PomlinEnter a letter to substitute: iEnter the letter to replace i: yPuzzle: B awcl wyewio ewjplr pn ul onhlunri, ufp B oll jne B oanfyr awcl ullj hngl oklmbvbm. Ybyi PnhybjCurrent: I have always wanped po be somebody, bup I see now I should have been more spemivim. Lily PomlinEnter a letter to substitute: pEnter the letter to replace p: tPuzzle: B awcl wyewio ewjplr pn ul onhlunri, ufp B oll jne B oanfyr awcl ullj hngl oklmbvbm. Ybyi PnhybjCurrent: I have always wanted to be somebody, but I see now I should have been more spemivim. Lily TomlinEnter a letter to substitute: mEnter the letter to replace m: cPuzzle: B awcl wyewio ewjplr pn ul onhlunri, ufp B oll jne B oanfyr awcl ullj hngl oklmbvbm. Ybyi PnhybjCurrent: I have always wanted to be somebody, but I see now I should have been more specivic. Lily TomlinEnter a letter to substitute: vEnter the letter to replace v: fYou solved it! Congratulations!Do you want to continue? (y/n) nProcess returned 0 (0x0) execution time : 226.900 sPress any key to continue. Computer Science Engineering & Technology C++ Programming CS 201