Here are some simple problems that are in the spirit of practicum problems. It is good expercise to try to solve them from scratch.

Relatively easy problems

  1. Write a program that reads in two points in ordered pair notation and returns the distance between the two points.
    Examples: (user input in red)
    ~/$ ./prog
    (1,2) (4,6)
    dist = 5
  2. Write a program that reads a list of five points (comma-separated, semi-colon terminated) and prints out the distances between each consecutive pair of points.
    Examples: (user input in red)
    ~/$ ./prog
    (2,3), (4,4), (4,1), (3,-1), (0,-2);
    2.23607
    3
    2.23607
    3.16228
    Note: If you get this working, try to then write a program that works for any number of points, not just five!
  3. More to appear

More challanging problems

  1. More to appear