Write a C++ class that is derived from the Progression class to produce a progression where each value is the absolute value of the difference between the previous two values. You should include a default constructor that starts with 2 and 200 as the first two values and a parametric constructor that starts with a specified pair of numbers as

Chapter 2, Creativity #5

This problem has been solved!


Do you need an answer to a question different from the above? Ask your question!

Write a C++ class that is derived from the Progression class to produce a progression where each value is the absolute value of the difference between the previous two values. You should include a default constructor that starts with 2 and 200 as the first two values and a parametric constructor that starts with a specified pair of numbers as the first two values.

Related Book For answer-question

Data Structures And Algorithms In C++

2nd Edition

Authors: Michael T. Goodrich, Roberto Tamassia, David M. Mount

ISBN: 9780470383278