The writer is very fast, professional and responded to the review request fast also. Thank you.
We have discussed “inheritance”, one of the fundamental concepts of Object Oriented Programming (OOP). In this homework we will experience inheritance concept through C++ programming to reinforce what we have learned in class. We will extend Sequence class to create Gene class. We also create a driver program to test each function in Gene class.
Instructions: Download starter code from Learn@UW-Stout under Content (Homework). Then implement Gene.h and Gene.cpp and create a tester program.
In the Visual Studio project, there are three files:
· Sequence.h: Sequence class hearder fileà no change required
· Sequence.cpp: Sequence class implementation fileà no change required
· GeneTest.cpp: a driver program that tests Gene class implementation
|
Sequence |
|
– sequence: char* – length: int |
|
+ Sequence(string s) +Sequence(const Sequence& s) //Copy constructor +Sequence& operator=(const Sequence& s) //Assignment operator +void set(int index, char c) //Set character at index to value in c + ~Sequence() + getSequence() const :char* + size() const :int |
|
Friend functions + bool operator==(const Sequence& lhs, const Sequence&rhs) +ostream& operator<< (ostream&ostr, constSequence&g) + bool operator<( const Sequence& lhs, const Sequence&rhs) |
|
Gene |
|
|
|
+ Gene(string s) +Gene(const Gene& g)//Copy constructor +Gene& operator=(const Gene& g) //Assignment operator + ~Gene() + aCount() const:int + cCount() const :int + tCount() const :int + gCount()const :int |
For this assignment you will design a C++ class to store information about a Gene using the existing Sequence class. Starter code includes sequence class declaration (Sequence.h) and member function implementation (Sequence.cpp).
Must have exact method header in code as in the UML so that a different tester file can be used to grade the assignment.
Task #1 Coding the UML Diagrams (20 points)
i. Constructor
ii. aCount(), cCount(), tCount(), and gCount()
iii. Destrutor
3. After each file is implemented create an object in the main method of GeneTest to test the implementation. Be sure to test all aspects of each function.
Task #2 Testing
I will provide tester program to be downloaded from D2L. It will test your code to see that the implementations are correct. You will need to replace this tester program with yours.
Submission note: You do NOT NEED TO SUBMIT ANYTHING TO THE DROPBOX! Instead, you will need to show your programs for your answers to the instructor or SIs during class.
Delivering a high-quality product at a reasonable price is not enough anymore.
That’s why we have developed 5 beneficial guarantees that will make your experience with our service enjoyable, easy, and safe.
You have to be 100% sure of the quality of your product to give a money-back guarantee. This describes us perfectly. Make sure that this guarantee is totally transparent.
Read moreEach paper is composed from scratch, according to your instructions. It is then checked by our plagiarism-detection software. There is no gap where plagiarism could squeeze in.
Read moreThanks to our free revisions, there is no way for you to be unsatisfied. We will work on your paper until you are completely happy with the result.
Read moreYour email is safe, as we store it according to international data protection rules. Your bank details are secure, as we use only reliable payment systems.
Read moreBy sending us your money, you buy the service we provide. Check out our terms and conditions if you prefer business talks to be laid out in official language.
Read more