KöMaL - Mathematical and Physical Journal for Secondary Schools
Hungarian version Information Contest Journal Articles News
Conditions
Entry form to the contest
Problems and solutions
Results of the competition
Problems of the previous years

 

 

Order KöMaL!

Ericsson

Google

Emberi Erőforrások Minisztériuma

Emberi Erőforrás Támogatáskezelő

Oktatáskutató és Fejlesztő Intézet

ELTE

Competitions Portal

I. 174. Money Eater Ltd. deals with currency exchange. The boss wants all employees to have access to all exchange rates, so he uses a web page with the following structure:

...
<table>
<tr><td>Hungarian Dollar</td>
<td>100</td></tr>
<tr><td>Australian Shekel</td>
<td>76</td></tr>
<tr><td>Swiss Yen</td>
<td>80
...
</table>
...

The first row of the table is the base currency, while other exchange rates are quoted in terms of this currency. In the example, 100 Hungarian Dollar correspond to 76 Australian Shekel or 80 Swiss Yen.

Write a program that converts exchange rates given in an HTML file (the input of your program) to a TXT file (the output of your program), so, for example, a command line could be i174 in.html out.txt.

The output of the above example would be the following TXT file:

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

(10 points)

Deadline expired.


Google Translation (Sorry, the solution is published in Hungarian only.)

A feladatra sok jó megoldás érkezett. Ezek közül Adrián Patrik (Fazekas Mihály Gimnázium, Debrecen, 8. o.) munkáját közöljük.

i174.cpp


Statistics on problem I. 174.
9 students sent a solution.
10 points:Adrián Patrik, Szoldatics András, Véges Márton.
9 points:Gulyás 990 Péter, Molnár Gábor.
8 points:2 students.
7 points:1 student.
5 points:1 student.


  • Problems in Information Technology of KöMaL, December 2007

  • Our web pages are supported by: Ericsson   Google   SzerencsejátĂ©k Zrt.   Emberi ErĹ‘források MinisztĂ©riuma   Emberi ErĹ‘forrás TámogatáskezelĹ‘   OktatáskutatĂł Ă©s FejlesztĹ‘ IntĂ©zet   ELTE   Nemzeti TehetsĂ©g Program