i need help writing a code for a math problem

Create a class called Assignment2c which will calculate and print the value of y for the below equation. X will be input by the user.

2x^2 - 3x

y = ______________________

x + 2

• Please run your program four times with different values input from the user for X. In the first two instances let X=5 and X=7, and you choose values for X for the next two. (Note: When X=5, the value for Y should be 5. When X=7, Y=8.555555.

• Please save the results from your output screen (with all 4 runs) in a file.

Re: i need help writing a code for a math problem

So what exactly is your problem? No one here will do your homework for you..

Re: i need help writing a code for a math problem

im a beginner in programming and i need help with writing a java code for this math problem.

import java.util.Scanner;

public class Assignment2c {

public static void generate() {

Re: i need help writing a code for a math problem

that's not good enough. Google how to use math

Re: i need help writing a code for a math problem

You need to go through some tutorials as no one is going to do this work for you. We can help answer specific questions, so at least try, then come back with your code and your questions if it doesn't work.