Mathematical and Physical Journal
for High Schools
Issued by the MATFUND Foundation
Already signed up?
New to KöMaL?

Problem S. 38. (October 2008)

S. 38. Web browsers create a document tree, when they display HTML pages. The root of the tree is a <HTML> element, and every other element is its descendant. The following example illustrates a HTML source and the corresponding document tree.

Write a program to create a document tree from a valid HTML 4.01 Strict DTD version page (that is, the page does not contain invalid formats and frames). Valid HTML elements are found at http://www.w3.org/TR/html401/index/elements.html

(only without marks D and L, altogether 80 elements). The first command line argument of your program is the name of the source file to be read, while the second command line argument is the name of the output text file containing the document tree in the above format.

The source code of your program (s38.pas, s38.cpp, ...) together with a short documentation (s38.txt, s38.pdf, ...) should be submitted, also containing a brief description of your solution and the name of the developer environment to use for compiling.

(10 pont)

Deadline expired on November 17, 2008.


Statistics:

24 students sent a solution.
10 points:Borsos 607 Zalán, Fejér 267 László, Kővágó Zoltán, Nagy Róbert, Para Attila, Véges Márton.
9 points:Bodosi Eszter, Englert Péter, Seregi Benjamin Martin, Weisz Ágoston, Weisz Gellért.
8 points:3 students.
7 points:3 students.
6 points:1 student.
5 points:4 students.
3 points:2 students.

Problems in Information Technology of KöMaL, October 2008