Formatting Periodic Decimal Numbers

Please write the programs directly into the section programs at the end of this notebook!
Please don't change the style sheet used for this notebook.

Problem

Take the datastructure for periodic decimal numbers implemented in an earlier exercise and add formatted input and output for this datastructure. As an example, we might want to input periodic decimal numbers in the form

0.01(OverBar[428571])

Implement the necessary functions such that input in the above style is translated into a Mathematica expression representing a periodic decimal number as implemented in the earlier exercise. Furthermore, provide also formatted output for periodic decimal numbers in the same style such that formatted output can be used as input also. Of course, you can support also any other "nice" format for entering periodic decimal numbers, the above is only a suggestion!

Programs

Tests

0.01(OverBar[428571])

0.01(OverBar[428571]) //FullForm