Answer to Question #281350 in C++ for Shuvo

Question #281350

Write a class RootFinder to find the Fifth root of the sum of the squares of the first 100 ODD 

numbers only


1
Expert's answer
2021-12-20T10:04:08-0500
class RootFinder
{
public:
    RootFinder();


    double squareSum()
    {
        int sum = 0;
        for (int i = 1; i <= 100; i++)
            sum += (2 * i - 1) * (2 * i - 1);
        return sqrt(sum);
    }
};

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog