Astronomers' homework in FORTRAN and C.