From f3e2c6f2add893710dc9a54098acff13c5934a90 Mon Sep 17 00:00:00 2001 From: "gasperfele@fri1.uni-lj.si" Date: Tue, 21 Oct 2014 21:35:40 +0000 Subject: Separated tasks from lectures git-svn-id: https://svn.lusy.fri.uni-lj.si/kpov-public-svn/kpov-public@2 5cf9fbd1-b2bc-434c-b4b7-e852f4f63414 --- .../tasks/custom_rdate/howtos/images/bu1.png | Bin 0 -> 979 bytes .../tasks/custom_rdate/howtos/images/bu15.png | Bin 0 -> 679 bytes .../tasks/custom_rdate/howtos/images/bu2.png | Bin 0 -> 826 bytes .../tasks/custom_rdate/howtos/images/bu3.png | Bin 0 -> 13656 bytes .../tasks/custom_rdate/howtos/images/bu4.png | Bin 0 -> 1564 bytes .../tasks/custom_rdate/howtos/images/bu5.png | Bin 0 -> 11278 bytes .../tasks/custom_rdate/howtos/images/bu6.png | Bin 0 -> 15244 bytes .../tasks/custom_rdate/howtos/images/bu7.png | Bin 0 -> 3842 bytes .../tasks/custom_rdate/howtos/images/bu8.png | Bin 0 -> 3420 bytes .../tasks/custom_rdate/howtos/images/bu9.png | Bin 0 -> 4245 bytes .../howtos/images/predvaja_clip_image003.gif | Bin 0 -> 686 bytes kpov_judge/tasks/custom_rdate/howtos/images/s1.png | Bin 0 -> 700 bytes kpov_judge/tasks/custom_rdate/howtos/images/s2.png | Bin 0 -> 3882 bytes kpov_judge/tasks/custom_rdate/howtos/images/s3.png | Bin 0 -> 3569 bytes kpov_judge/tasks/custom_rdate/howtos/si/index.html | 57 +++++++++++++++++++++ 15 files changed, 57 insertions(+) create mode 100644 kpov_judge/tasks/custom_rdate/howtos/images/bu1.png create mode 100644 kpov_judge/tasks/custom_rdate/howtos/images/bu15.png create mode 100644 kpov_judge/tasks/custom_rdate/howtos/images/bu2.png create mode 100644 kpov_judge/tasks/custom_rdate/howtos/images/bu3.png create mode 100644 kpov_judge/tasks/custom_rdate/howtos/images/bu4.png create mode 100644 kpov_judge/tasks/custom_rdate/howtos/images/bu5.png create mode 100644 kpov_judge/tasks/custom_rdate/howtos/images/bu6.png create mode 100644 kpov_judge/tasks/custom_rdate/howtos/images/bu7.png create mode 100644 kpov_judge/tasks/custom_rdate/howtos/images/bu8.png create mode 100644 kpov_judge/tasks/custom_rdate/howtos/images/bu9.png create mode 100644 kpov_judge/tasks/custom_rdate/howtos/images/predvaja_clip_image003.gif create mode 100644 kpov_judge/tasks/custom_rdate/howtos/images/s1.png create mode 100644 kpov_judge/tasks/custom_rdate/howtos/images/s2.png create mode 100644 kpov_judge/tasks/custom_rdate/howtos/images/s3.png create mode 100644 kpov_judge/tasks/custom_rdate/howtos/si/index.html (limited to 'kpov_judge/tasks/custom_rdate/howtos') diff --git a/kpov_judge/tasks/custom_rdate/howtos/images/bu1.png b/kpov_judge/tasks/custom_rdate/howtos/images/bu1.png new file mode 100644 index 0000000..c6eeac8 Binary files /dev/null and b/kpov_judge/tasks/custom_rdate/howtos/images/bu1.png differ diff --git a/kpov_judge/tasks/custom_rdate/howtos/images/bu15.png b/kpov_judge/tasks/custom_rdate/howtos/images/bu15.png new file mode 100644 index 0000000..c2ac808 Binary files /dev/null and b/kpov_judge/tasks/custom_rdate/howtos/images/bu15.png differ diff --git a/kpov_judge/tasks/custom_rdate/howtos/images/bu2.png b/kpov_judge/tasks/custom_rdate/howtos/images/bu2.png new file mode 100644 index 0000000..85fcfa8 Binary files /dev/null and b/kpov_judge/tasks/custom_rdate/howtos/images/bu2.png differ diff --git a/kpov_judge/tasks/custom_rdate/howtos/images/bu3.png b/kpov_judge/tasks/custom_rdate/howtos/images/bu3.png new file mode 100644 index 0000000..831e764 Binary files /dev/null and b/kpov_judge/tasks/custom_rdate/howtos/images/bu3.png differ diff --git a/kpov_judge/tasks/custom_rdate/howtos/images/bu4.png b/kpov_judge/tasks/custom_rdate/howtos/images/bu4.png new file mode 100644 index 0000000..495351a Binary files /dev/null and b/kpov_judge/tasks/custom_rdate/howtos/images/bu4.png differ diff --git a/kpov_judge/tasks/custom_rdate/howtos/images/bu5.png b/kpov_judge/tasks/custom_rdate/howtos/images/bu5.png new file mode 100644 index 0000000..103e0e6 Binary files /dev/null and b/kpov_judge/tasks/custom_rdate/howtos/images/bu5.png differ diff --git a/kpov_judge/tasks/custom_rdate/howtos/images/bu6.png b/kpov_judge/tasks/custom_rdate/howtos/images/bu6.png new file mode 100644 index 0000000..b032223 Binary files /dev/null and b/kpov_judge/tasks/custom_rdate/howtos/images/bu6.png differ diff --git a/kpov_judge/tasks/custom_rdate/howtos/images/bu7.png b/kpov_judge/tasks/custom_rdate/howtos/images/bu7.png new file mode 100644 index 0000000..bd50500 Binary files /dev/null and b/kpov_judge/tasks/custom_rdate/howtos/images/bu7.png differ diff --git a/kpov_judge/tasks/custom_rdate/howtos/images/bu8.png b/kpov_judge/tasks/custom_rdate/howtos/images/bu8.png new file mode 100644 index 0000000..98f7812 Binary files /dev/null and b/kpov_judge/tasks/custom_rdate/howtos/images/bu8.png differ diff --git a/kpov_judge/tasks/custom_rdate/howtos/images/bu9.png b/kpov_judge/tasks/custom_rdate/howtos/images/bu9.png new file mode 100644 index 0000000..9ed78ce Binary files /dev/null and b/kpov_judge/tasks/custom_rdate/howtos/images/bu9.png differ diff --git a/kpov_judge/tasks/custom_rdate/howtos/images/predvaja_clip_image003.gif b/kpov_judge/tasks/custom_rdate/howtos/images/predvaja_clip_image003.gif new file mode 100644 index 0000000..02be389 Binary files /dev/null and b/kpov_judge/tasks/custom_rdate/howtos/images/predvaja_clip_image003.gif differ diff --git a/kpov_judge/tasks/custom_rdate/howtos/images/s1.png b/kpov_judge/tasks/custom_rdate/howtos/images/s1.png new file mode 100644 index 0000000..52b6ee5 Binary files /dev/null and b/kpov_judge/tasks/custom_rdate/howtos/images/s1.png differ diff --git a/kpov_judge/tasks/custom_rdate/howtos/images/s2.png b/kpov_judge/tasks/custom_rdate/howtos/images/s2.png new file mode 100644 index 0000000..78a65ce Binary files /dev/null and b/kpov_judge/tasks/custom_rdate/howtos/images/s2.png differ diff --git a/kpov_judge/tasks/custom_rdate/howtos/images/s3.png b/kpov_judge/tasks/custom_rdate/howtos/images/s3.png new file mode 100644 index 0000000..c32eae1 Binary files /dev/null and b/kpov_judge/tasks/custom_rdate/howtos/images/s3.png differ diff --git a/kpov_judge/tasks/custom_rdate/howtos/si/index.html b/kpov_judge/tasks/custom_rdate/howtos/si/index.html new file mode 100644 index 0000000..a22f5c2 --- /dev/null +++ b/kpov_judge/tasks/custom_rdate/howtos/si/index.html @@ -0,0 +1,57 @@ + + + + + + + +

XX. predvaja:


+

Naloga na hitro:


+ Nastavi uro na strežniku s pomočjo rdate. Napiši program, ki pretvori 24-bitna števila z dvojiškim komplementom v decimalno obliko.

+

Navodila:


+ 1. Iz imenika s slikami virtualnih računalnikov povlecite sliki Student.vdi(klient) in SimpleArbiter.vdi(strežnik).
+ 2. Z VirtualBoxom (ali ostalim programom za virtualne računalnike) ustvarite dva virtualna računalnika in jim kot disk za shranjevanje podajte Student.vdi ter SimpleArbiter.vdi.
+ 3. Zaženite oba navidezna računalnika.
+ 4. Na Student se prijavite z uporabnikom root in geslom kaboom na SimpleArbiter pa z uporabnikom tester in geslom SedemKrogovPekla.

+ +

Prvi del naloge: posodobi uro računalnika s pomočjo rdate.


+ 1. Preverite in si zapišite IP naslov na SimpleArbiter. (ifconfig)


+ 2. Z ukazom sudo apt-get install rdate namestimo program rdate.
+ 3. Na Student z pomočjo rdate posodobi uro računalnika. rdate IP_SIMPLE_ARBITER

+ Opozorilo: NI napaka, če se posodobljen čas ne ujema s pravilnim časom.
+

+


+

Drugi del naloge: napiši program, ki pretvori binarni zapis 32-bitnega števila v decimalnega.


+ Nalogo lahko rešite v Javi ali v Pythonu. Prav tako pa lahko kodo pišete v poljubnem tekstovnem urejevalniku.

+


+ JAVA------
+ 1. Z ukazom nano bintodec3.java ustvarimo in odpremo prazen program s tekstovnim urejevalnikom nano
+ 2. Napišemo program za pretvarjanje 24-bitnega števila z dvojiškim komplementom v decimalno obliko
+

+ 3. Pritisnemo Ctrl+X, nato Y in Enter, da program zapremo in shranimo.
+ 4. Če je še nimamo, naložimo Javo sudo apt-get install openjdk-6-jdk

+ 5. Prevedemo program javac bintodec3.java
+ 6. Lahko ga še zaženemo ter preizkusimo java bintodec3. Na standardni vhod vnašamo 24-bitno število v šestnajstiški obliki

+

PYTHON------
+ 1. Z ukazom nano bintodec3.py ustvarimo in odpremo prazen program s tekstovnim urejevalnikom nano
+ 2. Napišemo program za pretvarjanje 24-bitnega števila z dvojiškim komplementom v decimalno obliko
+
+ 3. Pritisnemo Ctrl+X, nato Y in Enter, da program zapremo in shranimo.
+ 4. Program zaženemo z ukazom python bintodec3.py



+ + +

+

Testiranje

+ 1. Lahko poženemo tester; z ukazom ./run_test.py
+
+ 2. Kot "Upor. Ime" in "Geslo" napišite vaše podatke učilnice. (npr.: "pz1234@student.uni-lj.si" in "geslo123")
+
+ 3. Kot ime naloge vpišite XX.predvaja.
+ 4. Ko vas program vpraša po poti programa vnesite vašo pot do programa za pretvarjanje. (npr.: če imate program bintodec3.py v isti mapi kot program run_test.py, vnesete: ./bintodec3.py)
+ 5. Povpraša tudi po IP naslovu SimpleArbiterja, vnesite.
+ 6. Če je šlo vse po sreči, program vrne OK vi pa ste opravili nalogo.

+ +
+ + + -- cgit v1.2.1