At about what value for x does the polynomial evaluate to zero?
Answer:
Looks like at about a bit more than 1.178.
End of the Chapter
You could use the program to search for a value of x at which the polynomial evaluates to zero. You could keep trying values that get you closer and closer to zero. Computers sometimes use a method similar to this when they are used to solve mathematical problems.
This is the end of the chapter. You may wish to zero in on one of the following topics. Click on a subject that interests you to go to where it was discussed.
- General idea of a sentinel-controlled loop.
-
Nested
ifs. -
Matching
ifs andelses. - The add up integers program.
- Outline of a program that uses a string as a sentinel.
- A program for evaluating polynomials.