Question: write this program in java You will write a program that asks a user for two (x, y) coordinates. Your program will calculate and print

write this program in javawrite this program in java You will write a program that asks

You will write a program that asks a user for two (x, y) coordinates. Your program will calculate and print the equation between the coordinates in slope-intercept form. You will then plot the two points on a graph Finally, you will ask the user if they want to repeat the process with a different set of points. You should allow the user to enter as many sets of points as they want until they enter that they don't want to go again Here is a sample run of the program (user input is in red): Enter the bound for the grid (1-15): 12 Enter x1: 15 Error:coordinates must be between0 and 12 Enter x1: 0 Enter yl: 10 Enter x2: 3 Enter y2: 1 12 I 10 * 0 1 2 3 4 5 6 7 8 9 10 11 12 y = -3.00x + 10.00 Do you want to go again (y)? jy Enter the bound for the grid (1-15): 2 Enter x1: 0 Enter y1: 0 Enter x2: 2 Enter y2: 2 i: 0 12 y1.00x + 0.00 Do you want to go again (y)? rn

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!