Question: Q2. Create a main program based on the DNA class and all the functions created above according to the following requirements. Write the code in

Q2. Create a main program based on the DNA class and all the functions created above according to the following requirements. Write the code in IDE (netbeans or any other), paste its screenshot. There should be no error in the code. a. Create a pointer of string type and assign it to DNA object and print it. b. Create a DNA pointer object using parametrized constructor and print it. c. Create a vector of type DNA. Insert 03 DNA objects in vector using push_back(). Also print the complete vector. d. Can you create a pointer type DNA vector. Justify your answer. e. Give call to all the functions (that have been created in Q1.) using a simple DNA object and give output. f. Give call to all the functions (that have been created in Q1. ) using the DNA pointer object created in Q2. (b). and give output.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!