Question: A polynomial is given by k = - 8 . 0 c 2 - 2 . 5 c + 1 . 0 . Declare double

A polynomial is given by k=-8.0c2-2.5c+1.0. Declare double variables c and k. Then, read c from input and compute k using the polynomial.
Ex: If the input is 3.8, then the output is:
-124.020
Note: c2 can be computed using *.
import java.util.Scanner;
public class Polynomial {
public static void main(String[] args){
Scanner scnr = new Scanner(
System.in);
}
System.out.printf("%.3f
", k);
}
 A polynomial is given by k=-8.0c2-2.5c+1.0. Declare double variables c and

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 Databases Questions!