QUESTION 2: Helper (or utility) classes are classes that contain only static data members and static member functions. Y
Posted: Sat Nov 27, 2021 2:26 pm
QUESTION 2: Helper (or utility) classes are classes that contain only static data members and static member functions. Your task in Question 2 is to design and implement a Math helper class that contains the following: A static constant variable that holds the value of Pl. A static function that computes the area of a circle, given its radius. A static function that computes the Sum OfNumbers, that calculate the sum of all positive numbers less than or equal to a given number. A static function that computes the absolute value fabs of a double. A static function that rounds a double to the nearest integer Implement also a simple driver program that prints the value of Pl and invokes the four static functions on some dummy numbers.