abstract class, computer science lab work

Get perfect grades by consistently using www.assignmentgeeks.org. Place your order and get a quality paper today. Take advantage of our current 20% discount by using the coupon code GET20


Order a Similar Paper Order a Different Paper

Lab

Consider the following abstract class:
class NumberSeq {
 public:
 virtual int find(int k)=0;
 void printSeq(int k, int l); // print the number from index k to index l
}; 
Write the implementation of printSeq() at the base class only as well as the OddSeq and EvenSeq derived classes that implement find() method, which returns the kth odd or even number, respectively, depending on the derived class being used.
Note:
• Even numbers: 2*k, where k is the index of the kth even number
• Odd numbers: 2*k-1, where k is the index of the kth odd number

Writerbay.net

Do you need help with this or a different assignment? We offer CONFIDENTIAL, ORIGINAL (Turnitin/LopesWrite/SafeAssign checks), and PRIVATE services using latest (within 5 years) peer-reviewed articles. Kindly click on ORDER NOW to receive an A++ paper from our masters- and PhD writers.

Get a 15% discount on your order using the following coupon code SAVE15


Order a Similar Paper Order a Different Paper