To use Ghost's Python Codehs, we need to install Pygame, for it to work.
<h3>How to use pygame?</h3>
Pygame has several ways to install. Let's do the installation here from the PyCharm environment itself. In the project interpreter, the new virtual environment is already configured, you click on the plus sign, type Pygame, check if it is this one. There's a lot of Pygame, but it's this one alone, with nothing, version 9.6. Click on it and on the installation package button.
If all goes well, Pygame will be successfully installed, and you will be able to use it in your project.
Learn more about code brainly.com/question/497311
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
<em> a = input.nextFloat();</em>
<em> b = input.nextFloat();</em>
<em> c = input.nextFloat();</em>
<em> x = input.nextFloat();</em>
This calculates the value of y using 

This prints the calculated value of y
System.out.print(y);