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); }}
Step-by-step 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
![y = ax^2 + bx + c](https://img.qammunity.org/2022/formulas/mathematics/high-school/vth15uvnrv9ypmw428ic1a3522z2iv9yam.png)
![y = a * x * x + b * x + c;](https://img.qammunity.org/2022/formulas/computers-and-technology/college/63gx8r5wc9200l1vl786ff7hxjfg9nz11a.png)
This prints the calculated value of y
System.out.print(y);