1. Import scanner and begin while loop sequence
2. Scan for coordinates
3. First take Distance
4. Plug coordinates into Sqrt(|x2-x1|^2+|y2-y1|^2)
5. Create var x3, y3 set x3 = (x1+x2)/2 and y3 = (y1+y2)/2
6. Problem is irrational numbers, so take variable with just |x2-x1|^2+|y2-y1|^2
7. If irrational, add sqrt symbol + |x2-x1|^2+|y2-y1|^2
8. Print out (x3, y3)
9. Ask to run again
10. If yes, loop back to one, if no, proceed (while loop definition)
11. Exit code with last statement
That was moderately easy! My last project is the hardest I’ve done so far, so the code will increase in difficulty as you move forward!