Java Code for Slope Intercept Form

This java programming code is used to find the slope intercept form. You can select the whole java code by clicking the select option and can use it. When you click text, the code will be changed to text format. This java program code will be opened in a new pop up window once you click pop-up from the right corner. You can just copy, paste this java code and use it to find the slope intercept form.

import java.util.*;
import java.lang.*;
import java.lang.Math.*;

class Slope_intercept
{  
    public static void main(String args[])
    {
        double x1,x2,y1,y2,c,m;
        x1=-1;x2=3;y1=0;y2=8;c=0;
        m=(y2-y1)/(x2-x1);
        c=y2-(m*x2);
        System.out.println("slope (y)="+Math.round(m)+"x+"+Math.round(c));
    }
}
Other Programming Codes
Online Calculator : Slope Intercept Form
Click on the select code link to copy and paste this free java program code for slope intercept form.

english Calculators and Converters

Ask a Question


Sitemap