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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started