Answer:
The program in Java is as follows:
import java.util.Scanner;
public class Main{
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
float a, b, c, x, y;
a = input.nextFloat();
b = input.nextFloat();
c = input.nextFloat();
x = input.nextFloat();
y = a * x * x + b * x + c;
System.out.print(y); }}
Explanation:
This declares all variables
float a, b, c, x, y;
The next 4 lines get input for a, b, c and x
a = input.nextFloat();
b = input.nextFloat();
c = input.nextFloat();
x = input.nextFloat();
This calculates the value of y using [tex]y = ax^2 + bx + c[/tex]
[tex]y = a * x * x + b * x + c;[/tex]
This prints the calculated value of y
System.out.print(y);