Lets say you have a line y = 0.5x + 2.0, where 0.5 is the slope, and

Question:

Let’s say you have a line y = 0.5x + 2.0, where 0.5 is the slope, and 2.0 is the y-intercept. Using this linear equation, we can find the (x,y) coordinates on this line. 

Create a new class file called LinearEquation.java and create a main() container. Find the y coordinate for the corresponding x values: 

image text in transcribed

Make sure you use a data type that represents decimal numbers.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Question Posted: