|user-given coordinates (x1, y1), (x2, y2), (x3, y3) and prints a right triangle using these coordinates on a grid. |
I'm a user. I give coordinates: 42 42 42 42 42 42
I'm disappointed, I did expect to see a triangle on the quintillion * quintillion
In other words, what do we know about the grid? Barely large enough to fit the triangle?
(For my input, a 42*42 would be enough.)
Where is the (0,0)? Top left, bottom left, center? Is (0,1) above or below (0,0)?
I enter three points. What if I change the order of the points? Should the image change?
What to do about aliasing
The task (as written) gives the user "freedom". That in turn means that the program/programmer must have more answers.