I am currrently new to programming so please bare with me.
This is for my Intro to Java programming class, the instructions are displayed in the picture.
import java.util.Scanner;
public class QuadEval
{
public static void main(String[] args)
{
int a, b, c, x;
Scanner s = new Scanner(System.in);
System.out.println("Given quadratic equation:ax^2 + bx + c");
System.out.print("Enter a:");
a = s.nextInt();
System.out.print("Enter b:");
b = s.nextInt();
System.out.print("Enter c:");
c = s.nextInt();
System.out.print("Enter x:");
x = s.nextInt();
System.out.println("Given quadratic equation:"+a+"x^2 + "+b+"x + "+c);
I am not sure if i am doing it right and what the next steps are, any help will be appreciated.
Capture.jpg