function to find the nth root of c

What will be an ideal response?


```
double nthroot( double c, double n)
{
return secant( c, n, c, c / n);
}
int main()
{
double c, n, nthr;

cout << "Enter constant 'c': ";
cin >> c;
cout << "Enter nthroot 'n': ";
cin >> n;

nthr = nthroot( c, n);

cout << "The " << n << " root of " << c << " is approximately " <<
nthr << endl;

return 0;
}

```

Computer Science & Information Technology

You might also like to view...

Which statement is false?

a. The Collections API provides a set of public static methods for converting collections to unmodifiable versions. b. Unmodifable wrappers throw ModificationExceptions if attempts are made to modify the collection. c. You can use an unmodifiable wrapper to create a collection that offers read-only access to others while allowing read-write access to yourself. d. You can create the kind of collection mentioned in part (c) simply by giving others a reference to the unmodifiable wrapper while you also retain a reference to the wrapped collection itself.

Computer Science & Information Technology

The profile page for an individual on Facebook is called the Timeline page

Indicate whether the statement is true or false

Computer Science & Information Technology

The worksheet that is visible in the Excel application window is the ________ worksheet

Fill in the blank(s) with correct word

Computer Science & Information Technology

The Recycle Bin is a holding area for the files you've deleted from your PC's hard disk.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology