The straight line equation
I would like to make a plotted coordinate system where the straight line equation should be plotted. I have made a menu where I can choose to change the : 1: value for k, 2: value for m, 3: value for n (how many coordinates which should be printed out) and finally nr 4:. If I choose nr 4 a coordinate system should be printed with the number of coordinates in it. I should also print out the equation. For exampel, if the k is 3, the m is 4 the program should print out y (x) = 3x + m I have come so far that I have made the menus and I have nr 1-3 in the menu working but I don't know where to start to make the array to calculate the y and x-values. Can anyone give me a hint on how to start or guide me to some know-how page ;) I'm rather new at this you know :)