I got a program to solve in a Java. The program is that without using graphics, i want to print a distance-time graph. The graph should be such that whatever the dist/time inputs maybe, the program will print the full graph taking SUITABLE SCALE. For example taking dist=1000 on Y axis, & time=500 on X axis, the program should a smaller scale such as 10 & 5 units respectively. A sample output is as follows:
12|
11|
10|xxxxx
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
+----+----+-----+
0 5 10
If anyone got any idea, please share.
Thanks for your replies.












