Question: 5 3 3 2 2 0 . 4 0 0 4 3 7 2 . q x 3 z q y 7 Jump to level

533220.4004372.qx3zqy7
Jump to level 1
A polynomial is given by q=-9.5c2+1.5c-6.5. Declare double variables c and q. Then, read c from input and compute q
using the polynomial.
Ex: If the input is 3.6, then the output is:
-124.220
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);
V* Your code goes here */
System.out.printf("%.3f
", q);
}
 533220.4004372.qx3zqy7 Jump to level 1 A polynomial is given by q=-9.5c2+1.5c-6.5.

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!