Question: A polynomial is given by p = 9 . 0 n 2 + 7 . 5 n + 8 . 0 . Declare double variables

A polynomial is given by p=9.0n2+7.5n+8.0. Declare double variables n and p. Then, read n from input and compute p using the polynomial.
Ex: If the input is 2.3, then the output is:
72.860
Note: n2 can be computed using *.
A polynomial is given by p = 9 . 0 n 2 + 7 . 5 n

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!