gebiet.dat 21 Bayern 22 R 107 Rohan 102 L 105 Gondor 102 L 104 Bockland 103 R 1 Salzburg 2 R 8 Wien 2 R 3 Europa 0 K 111 Ostfold 107 R 106 Mordor 102 L 108 Gorgoroth 107 R 25 Baden-Wuerttemberg 22 R...

Instructions are in the zip file


gebiet.dat 21 Bayern 22 R 107 Rohan 102 L 105 Gondor 102 L 104 Bockland 103 R 1 Salzburg 2 R 8 Wien 2 R 3 Europa 0 K 111 Ostfold 107 R 106 Mordor 102 L 108 Gorgoroth 107 R 25 Baden-Wuerttemberg 22 R 20 Oberbayern 21 R 4 Steiermark 2 R 110 Westfold 107 R 6 Tirol 2 R 26 Sachsen 22 R 30 Nordrhein-Westfalen 22 R 29 Schleswig-Holstein 22 R 103 Auenland 101 R 100 Nebelgebirge 101 R 101 Eriador 102 L 23 Hessen 22 R 24 Mittelfranken 21 R 7 Kaernten 2 R 22 Deutschland 3 L 109 Nurn 107 R 5 Oberoesterreich 2 R 9 Niederoesterreich 2 R 102 Mittelerde 0 K 28 Niedersachsen 22 R 27 Brandenburg 22 R 2 Oesterreich 3 L Instructions .txt Create two .dat Files called land.dat and grenze.dat. The file land.dat will contain all countries, which have to be numbered consecutively, and grenze.dat should contain (in each line) two numbers of two countries that share a border (this is the case when a street from a city of a country is leading to a street of a city in another country) and the number of such streets should be contained as well. The main program doing all of this should be called „programm“. Header files are allowed, as well as smaller helpful programs to build functions. 3 Files to be used: stadt.dat, gebiet.dat and strasse.dat Structure of stadt.dat: city id. Name. Inhabitants region id. Sea level Structure of gebiet.dat: region id name over region id type -overregion id is the id of a country which is part of the region -type can be R,L or K. R can have „overregion“ L or R, L can have overregion K Structure of stadt.dat: from city id. to city id. distance __MACOSX/._Instructions .txt stadt.dat 101 Michelbinge 3200 103 334 22 Nuernberg 503110 24 309 106 Hagsend 4120 104 292 103 Wasserau 2314 103 324 7 SanktPoelten 51518 9 475 21 Frankfurt 659021 23 112 112 Osgiliath 11300 105 230 2 Graz 255354 4 353 27 Hannover 518088 28 55 26 Berlin 3429870 27 34 104 Untertuermen 2450 103 415 28 Hamburg 1773218 29 6 115 Barad-dur 1400 108 340 114 Morannon 50 106 480 105 Neuburg 3176 104 311 3 Linz 189069 5 266 110 Bruchtal 890 101 630 30 Dortmund 586909 30 76 118 Edoras 7892 110 405 109 Dornbuehl 1189 104 295 24 Dresden 507513 26 113 100 Moria 9500 100 750 108 Bockenburg 3790 104 299 23 Stuttgart 597176 25 245 20 Muenchen 1365052 20 519 113 MinasTirith 15000 105 245 4 Innsbruck 119250 6 574 111 Isengard 130 105 450 119 Aldburg 9124 111 385 25 Leipzig 513082 26 113 6 Wien 1681469 8 200 116 Orodruin 2320 108 1413 117 HelmsKlamm 780 110 510 102 Hobbingen 4220 103 315 29 Bremen 548477 28 11 1 Salzburg 149355 1 424 5 Klagenfurt 92807 7 446 107 Krickloch 950 104 324 strasse.dat 100 110 290 100 111 550 100 114 930 101 102 95 102 103 30 103 105 40 103 106 80 104 101 90 104 102 110 105 107 15 105 110 520 106 100 590 107 108 20 108 109 10 109 106 15 111 117 190 111 118 180 112 113 50 112 114 340 114 116 120 115 114 135 116 115 100 117 118 90 118 119 150 119 112 340 119 113 360 119 114 390 1 20 144 1 3 135 1 4 138 1 5 162 20 22 166 20 4 165 22 21 225 22 24 318 22 25 281 24 26 194 25 24 121 25 26 190 25 27 264 26 27 286 26 28 289 27 28 157 27 29 125 27 30 213 28 29 122 29 30 240 30 21 221 30 25 421 3 2 163 3 22 336 3 7 111 5 2 100 6 2 200 7 6 68
Dec 10, 2021
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here