Professional Documents
Culture Documents
Converter
Summary of Changes:
Version
Number Author Date Comments
1.0 Roman Petrovski 22 Nov 2003 Created
1.1 Roman Petrovski 02 Apr 2004 References table created, well formed XML
statement added
2. Task definition
The task involves writing the converter code that will take the input file and produce the output file. Both
files describe the textual document that can contain various text style modifiers affecting the presentation
(Bold, Italic, text color, etc…). The set of style modifiers supported by both input and output file formats is
same; however, the structure is completely different.
Example:
The following table summarizes the escape sequences that can be used:
Escape code Meaning
\\ “\” symbol
\B Toggles the “Bold” style of the following text
\I Toggles the “Italic” style of the following text
\COLOR=RGB(r,g,b) Sets the color of the following text
\COLOR Reverts back to the previous color used
Since there is certain freedom of valid output file variations, the following two examples illustrate what
will be considered as better (more efficient) and worse (less efficient) result files.
Tag Meaning
space Space symbol
b Indicates section with “bold” style active
i Indicates section with “italic” style active
colour Indicates section with specified color active. If the RGB attribute is not
specified, the “default” color should be used
3. Implementation requirements
1. Implemented application should be a “console application”. That is, it should be able to take all the
necessary parameters from the command line. If the output file name is not specified, it is
constructed from the input file name by adding the “.xml” extension.
2. If the desired position involves object oriented programming, the implementation must use
classes.
Замечания:
About the test task: as a standard each candidate for the developer’s position has to implement the test task I
am sending you now, in the language he/she applies for a position. That helps us determine whether he/she is
the person we are looking for. The test task is specifically designed to give the person a good opportunity to
demonstrate his/her skills in object oriented approach, C++ or JAVA programming and STL usage. The
person is welcome to show us his/her best sides, take time, design first, code later, etc. Please pay attention
that the task will be evaluated by different input files of different levels of difficulty.
Once the task is solved, the students should send me piret@fusionone.ee the source code and the
executable. Then our senior developers estimate the results, and can give feedback to your students.
As you can see from the task file, it's written in English - our working language in FusionOne is also English,
besides Russian, our people need to understand at least some level technical English. So, some English skill
is additional requirement, in addition to what was mentioned yesterday - willingness to develop yourself, to
learn new things, passion for the work.
The students are very welcome to try to implement the test task as they have a valuable possibility to get
some feedback from our developers, and perhaps one fine day we'll work together.