De Anza College C++ assignment visual studio Hi for the lab4 you missed the structure of class
also i need UML diagram for the lab5. question is below.
LAB 5 – Abstract Class Encryption
In this lab you will restructure and extend Lab 4 in order to have multiple encryption algorithms. You will create an abstract class with a pure virtual function decode which will be implemented in two different derived classes. One of them will have the algorithm that you already implemented in Lab 4. The second one is explained in STEP 3.
STEP 1: Make the Encrypted class created for Lab 1 abstract. For a class to be abstract it needs to have a pure virtual function. Make decode a pure virtual function in that class (refer to textbook 15.7 Abstract Base Classes and Pure Virtual Functions). Keep everything that you already have in the Encrypted class except the implementation (body) of decode and any member variables used in the decoding process. Those need to be moved to the derived class where the decoding will now take place. Variables left in the base class that you may need to access in the derived classes need to be protected instead of private.
STEP 2: Create another header file “CypherA.h” with class CypherA derived from Encrypted. Don’t forget to #include “Encrypted.h” in the new header file. Move the decode function that you implemented on Lab 4 here. This class should have:
member function decode and any member variables needed in the decoding process.
constructor (refer to textbook 15.3 Constructors and Destructors in Base and Derived Classes and Passing Arguments to Base Class Constructors) and destructor.
STEP 3: Create another header file CypherB.h with class CypherB derived from Encrypted. Don’t forget to #include “Encrypted.h”. Implement another version of decode using an algorithm known as “rotational cypher”. In this encryption method, a key is added to each letter of the original text. For example:
Cleartext: A P P L E
Key: 4 4 4 4 4
Ciphertext: E T T P I
In order to decode, you need to subtract 4.
Implement the member functions in CypherA and CypherB inline.
STEP 4: Now in main.cpp you cannot create objects of Encrypted anymore because you made it abstract and you cannot instantiate objects of abstract classes. Change main.cpp to create objects of CypherA and CypherB instead. You need to #include “CypherA.h” and “CypherB.h” instead of “Encrypted.h” in main.cpp. Note that you can still call printand isEmpty on the objects of CypherA and CypherB, even though they belong to Encrypted, because CypherA and CypherB inherit all protected and public members from Encrypted.
Turn in Encrypted.cpp, Encrypted.h, CypherA.h and CypherB.h.
Rubric
Lab5 rubric
Lab5 rubric
Criteria Ratings Pts
This criterion is linked to a Learning OutcomeDocumentation (ALL files)Header comment with description of class, your name and date. Comments on all member functions and variables.
10.0 pts
Full Marks
0.0 pts
No Marks
10.0 pts
This criterion is linked to a Learning OutcomeEncrypted class
10.0 pts
Full Marks
0.0 pts
No Marks
10.0 pts
This criterion is linked to a Learning OutcomeCypherA class
10.0 pts
Full Marks
0.0 pts
No Marks
10.0 pts
This criterion is linked to a Learning OutcomeCypherB class
10.0 pts
Full Marks
0.0 pts
No Marks
10.0 pts
This criterion is linked to a Learning OutcomeStructure and StyleExamples: avoids repetition of code by defining functions and using loops; defines constants for arrays sizes and their access; makes sure to not overstep array boundaries; there are no global variables, labels and goto statements; cod is nicely indented.
5.0 pts
Full Marks
0.0 pts
No Marks
5.0 pts
This criterion is linked to a Learning OutcomeOutputCorrect and attached as a comment at the end of your source code.
5.0 pts
Full Marks
0.0 pts
No Marks
5.0 pts
Total Points: 50.0
Also complete the lab5 as usual.
Why Work with Us
Top Quality and Well-Researched Papers
We always make sure that writers follow all your instructions precisely. You can choose your academic level: high school, college/university or professional, and we will assign a writer who has a respective degree.
Professional and Experienced Academic Writers
We have a team of professional writers with experience in academic and business writing. Many are native speakers and able to perform any task for which you need help.
Free Unlimited Revisions
If you think we missed something, send your order for a free revision. You have 10 days to submit the order for review after you have received the final document. You can do this yourself after logging into your personal account or by contacting our support.
Prompt Delivery and 100% Money-Back-Guarantee
All papers are always delivered on time. In case we need more time to master your paper, we may contact you regarding the deadline extension. In case you cannot provide us with more time, a 100% refund is guaranteed.
Original & Confidential
We use several writing tools checks to ensure that all documents you receive are free from plagiarism. Our editors carefully review all quotations in the text. We also promise maximum confidentiality in all of our services.
24/7 Customer Support
Our support agents are available 24 hours a day 7 days a week and committed to providing you with the best customer experience. Get in touch whenever you need any assistance.
Try it now!
How it works?
Follow these simple steps to get your paper done
Place your order
Fill in the order form and provide all details of your assignment.
Proceed with the payment
Choose the payment system that suits you most.
Receive the final file
Once your paper is ready, we will email it to you.
Our Services
No need to work on your paper at night. Sleep tight, we will cover your back. We offer all kinds of writing services.
Essays
No matter what kind of academic paper you need and how urgent you need it, you are welcome to choose your academic level and the type of your paper at an affordable price. We take care of all your paper needs and give a 24/7 customer care support system.
Admissions
Admission Essays & Business Writing Help
An admission essay is an essay or other written statement by a candidate, often a potential student enrolling in a college, university, or graduate school. You can be rest assurred that through our service we will write the best admission essay for you.
Reviews
Editing Support
Our academic writers and editors make the necessary changes to your paper so that it is polished. We also format your document by correctly quoting the sources and creating reference lists in the formats APA, Harvard, MLA, Chicago / Turabian.
Reviews
Revision Support
If you think your paper could be improved, you can request a review. In this case, your paper will be checked by the writer or assigned to an editor. You can use this option as many times as you see fit. This is free because we want you to be completely satisfied with the service offered.