Page 1 :
Thursday, August 05, 2021, 8:07 PM, , COMBINED ICSE 246 Page 1
Page 2 :
Question 7., Design a class to overload a function series() as follows: [15], (a) void series (int x, int n) – To display the sum of the series given below:, x1 + x2 + x3 + ……………. xn terms, (b) void series (int p) – To display the following series:, 0, 7, 26, 63 p terms., (c) void series () – To display the sum of the series given below:, , COMBINED ICSE 246 Page 2
Page 3 :
Question 7., Design a class to overload a function volume() as follows : [15], (i) double volume (double R) — with radius (R) as an argument, returns the volume of sphere using the, formula., V = 4/3 × 22/7 × R, (ii) double volume (double H, double R) – with height(H) and radius(R) as the arguments, returns the, volume of a cylinder using the formula., V = 22/7 × R × H, (iii) double volume (double L, double B, double H) – with length(L), breadth(B) and Height(H) as the, arguments, returns the volume of a cuboid using the formula., , Question 8, Design a class to overload a function series( ) as follows:, 1. double series(double n) with one double argument and returns the sum of the series., sum = (1/1) + (1/2) + (1/3) + .......... + (1/n), 2. double series(double a, double n) with two double arguments and returns the sum of the, series., sum = (1/a2) + (4/a5) + (7/a8) + (10/a11) + .......... to n terms, , COMBINED ICSE 246 Page 3