Question

3. Write a program named ColumnAlignment that reads lines from a file named As202.txt and

displays the line of text aligned as follows:

- Numeric values are right-aligned

- can have one decimal

can start with a $ sign

Non-numeric values, or text that does not fall under the numeric description, are

centre-aligned

If the text is longer than the column width, it is left-aligned

Your program will first ask the user for the column width, then display each line aligned as described

above. Include a dot to help visualize the spaces.