summaryrefslogtreecommitdiffstats
path: root/tests/010/align-columns.dat
blob: 3c72220705fe485d2cc0afad70f26316acdac9e7 (plain)
1
2
3
4
5
6
Given$a$text$file$of$many$lines,$where$fields$within$a$line$
are$delineated$by$a$single$'dollar'$character,$write$a$program
that$aligns$each$column$of$fields$by$ensuring$that$words$in$each$
column$are$separated$by$at$least$one$space.
Further,$allow$for$each$word$in$a$column$to$be$either$left$
justified,$right$justified,$or$center$justified$within$its$column.