C++ Program to find the sum of the series x – x^3 + x^5 + Class inheritance

Write a program in C++ to find the sum of the series x – x^3 + x^5 + using class.

WAP in C++ to find the sum of the series x – x^3 + x^5 + using single inheritance.

C++ Program to find the sum of the series x – x^3 + x^5 + using multiple inheritance.

C++ Code to find the sum of the series x – x^3 + x^5 + with the help of multi-level inheritance.