Public Methods Return Method Signature Type vaid string int void Public Methods Return Method Signature Type Page Page() addSentence(string sentence) getSentenceAt(int index) get NumberOfSentences() 1.2. Write a back-end class called PageManager and save it in a file called Page Manager.cpp. This class must have the following structure: Data Type int Page loadPageFromFile(string void fileName) Protected Members Name S writePageToFile(string fileName, Page page) Public Methods Return Туре char 1.3. Write a back-en class called APM11A1Encryptor and save it in a file called APM11A1Encryptor.cpp. This class must have the following structure: key Method Signature Description encryptACharacter(char character) A default constructor that will initialise SentenceCounter to zero. This method will place add a sentence to the Page. You must make use of the cSentences[] array. This method will retrieve a sentence. This method will return the number of sentences there are on the Page. encryptPage(Page page) setKey(int key) This method must read the content of the specified file into a Page object and return this Page. Description This method must write the content of a Page object into the specified file. This member will store the key that will be used during the encryption process. (You may NOT change the name of this member) Description This method must encrypt the received character by using the key class member and the Caesar Cipher encryption technique. This method will encrypt the content of the received page parameter by making use of the encryptACharacter() method. This method will set the value of the key data member. (You may NOT change the name of the input parameter)
Public Methods Return Method Signature Type vaid string int void Public Methods Return Method Signature Type Page Page() addSentence(string sentence) getSentenceAt(int index) get NumberOfSentences() 1.2. Write a back-end class called PageManager and save it in a file called Page Manager.cpp. This class must have the following structure: Data Type int Page loadPageFromFile(string void fileName) Protected Members Name S writePageToFile(string fileName, Page page) Public Methods Return Туре char 1.3. Write a back-en class called APM11A1Encryptor and save it in a file called APM11A1Encryptor.cpp. This class must have the following structure: key Method Signature Description encryptACharacter(char character) A default constructor that will initialise SentenceCounter to zero. This method will place add a sentence to the Page. You must make use of the cSentences[] array. This method will retrieve a sentence. This method will return the number of sentences there are on the Page. encryptPage(Page page) setKey(int key) This method must read the content of the specified file into a Page object and return this Page. Description This method must write the content of a Page object into the specified file. This member will store the key that will be used during the encryption process. (You may NOT change the name of this member) Description This method must encrypt the received character by using the key class member and the Caesar Cipher encryption technique. This method will encrypt the content of the received page parameter by making use of the encryptACharacter() method. This method will set the value of the key data member. (You may NOT change the name of the input parameter)
Chapter14: Files And Streams
Section: Chapter Questions
Problem 2E: Create a program named FileComparison that compares two files. First, use a text editor such as...
Related questions
Question
answer in c++
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 3 steps
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Recommended textbooks for you
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781305480537
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781305480537
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning