Version 1.0.0 (2025-01-02): Material ZPG (2017)
This commit is contained in:
parent
60ab7904d1
commit
69afb4b6cf
26 changed files with 724 additions and 5 deletions
BIN
1_Hintergrund/00_duc_stoffverteilung.odt
Normal file
BIN
1_Hintergrund/00_duc_stoffverteilung.odt
Normal file
Binary file not shown.
BIN
1_Hintergrund/01_duc_hintergrund.odt
Normal file
BIN
1_Hintergrund/01_duc_hintergrund.odt
Normal file
Binary file not shown.
BIN
1_Hintergrund/02_duc_unterricht.odt
Normal file
BIN
1_Hintergrund/02_duc_unterricht.odt
Normal file
Binary file not shown.
BIN
2_Kopiervorlagen/01_duc_einstieg_gruppenarbeit.odt
Normal file
BIN
2_Kopiervorlagen/01_duc_einstieg_gruppenarbeit.odt
Normal file
Binary file not shown.
BIN
2_Kopiervorlagen/02_duc_eiercode_barcode.odt
Normal file
BIN
2_Kopiervorlagen/02_duc_eiercode_barcode.odt
Normal file
Binary file not shown.
BIN
2_Kopiervorlagen/03_duc_einstieg_binaersystem.odt
Normal file
BIN
2_Kopiervorlagen/03_duc_einstieg_binaersystem.odt
Normal file
Binary file not shown.
BIN
2_Kopiervorlagen/04_duc_binaer_uebungen.odt
Normal file
BIN
2_Kopiervorlagen/04_duc_binaer_uebungen.odt
Normal file
Binary file not shown.
BIN
2_Kopiervorlagen/04_duc_magie_mit_binaerzahlen.pdf
Normal file
BIN
2_Kopiervorlagen/04_duc_magie_mit_binaerzahlen.pdf
Normal file
Binary file not shown.
BIN
2_Kopiervorlagen/05_duc_textcodierung.odt
Normal file
BIN
2_Kopiervorlagen/05_duc_textcodierung.odt
Normal file
Binary file not shown.
BIN
2_Kopiervorlagen/06_duc_grafikcodierung.odt
Normal file
BIN
2_Kopiervorlagen/06_duc_grafikcodierung.odt
Normal file
Binary file not shown.
BIN
2_Kopiervorlagen/07_duc_spiel_codierung.odt
Normal file
BIN
2_Kopiervorlagen/07_duc_spiel_codierung.odt
Normal file
Binary file not shown.
BIN
4_Loesungen/01_duc_einstieg_gruppenarbeit_loesung.odt
Normal file
BIN
4_Loesungen/01_duc_einstieg_gruppenarbeit_loesung.odt
Normal file
Binary file not shown.
BIN
4_Loesungen/02_duc_eiercode_barcode_loesung.odt
Normal file
BIN
4_Loesungen/02_duc_eiercode_barcode_loesung.odt
Normal file
Binary file not shown.
BIN
4_Loesungen/03_duc_einstieg_binaersystem_loesung.odt
Normal file
BIN
4_Loesungen/03_duc_einstieg_binaersystem_loesung.odt
Normal file
Binary file not shown.
BIN
4_Loesungen/04_duc_binaer_uebungen_loesung.odt
Normal file
BIN
4_Loesungen/04_duc_binaer_uebungen_loesung.odt
Normal file
Binary file not shown.
BIN
4_Loesungen/05_duc_textcodierung_loesung.odt
Normal file
BIN
4_Loesungen/05_duc_textcodierung_loesung.odt
Normal file
Binary file not shown.
BIN
4_Loesungen/06_duc_grafikcodierung_loesung.odt
Normal file
BIN
4_Loesungen/06_duc_grafikcodierung_loesung.odt
Normal file
Binary file not shown.
BIN
4_Loesungen/07_duc_spiel_codierung_loesung.odt
Normal file
BIN
4_Loesungen/07_duc_spiel_codierung_loesung.odt
Normal file
Binary file not shown.
118
6_Software/UebungBinär/DezDual.html
Normal file
118
6_Software/UebungBinär/DezDual.html
Normal file
|
|
@ -0,0 +1,118 @@
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<title>Übung zum Dualsystem</title>
|
||||||
|
</head>
|
||||||
|
|
||||||
|
|
||||||
|
<body text="#000000" bgcolor="#FFFFFF" link="#FF0000" alink="#FF0000" vlink="#FF0000" onLoad="window.innerHeight=300;window.innerWidth=400">
|
||||||
|
|
||||||
|
<h1>Umrechnung von<br> Dezimal- in Dualzahlen</h1>
|
||||||
|
<hr noshade size=1><br>
|
||||||
|
<form name=Formular>
|
||||||
|
<script language="javascript">
|
||||||
|
<!--
|
||||||
|
|
||||||
|
function WertHolen(Name) {
|
||||||
|
var Wert = 0;
|
||||||
|
if(document.cookie) {
|
||||||
|
var Wertstart=document.cookie.indexOf(Name+"=");
|
||||||
|
if (Wertstart == -1)
|
||||||
|
Wert = 0
|
||||||
|
else
|
||||||
|
{
|
||||||
|
Cooki = document.cookie.substring(Wertstart+Name.length+1,document.cookie.length);
|
||||||
|
var Wertende = Cooki.indexOf(";");
|
||||||
|
if (Wertende == -1)
|
||||||
|
Wertende = Cooki.length;
|
||||||
|
Wert = parseInt( Cooki.substring(0,Wertende));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return Wert;
|
||||||
|
}
|
||||||
|
|
||||||
|
function WertSetzen(Bezeichner, Wert, Verfall) {
|
||||||
|
var jetzt = new Date();
|
||||||
|
var Auszeit = new Date(jetzt.getTime() + Verfall);
|
||||||
|
document.cookie = Bezeichner+"="+Wert+"; expires="+Auszeit.toGMTString()+";";
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
function NeueZahl(Richtige)
|
||||||
|
{
|
||||||
|
if(richtige<3)
|
||||||
|
{
|
||||||
|
zahl = Math.round(Math.random()*15)
|
||||||
|
stufe = "Übung macht den Meister...";
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if(richtige<6)
|
||||||
|
{
|
||||||
|
zahl = Math.round(Math.random()*240)+16;
|
||||||
|
stufe = "So langsam hast Du es raus...";
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if(richtige<8)
|
||||||
|
{
|
||||||
|
zahl = Math.round(Math.random()*(256*15-1))+255;
|
||||||
|
stufe = "Jetzt die schwierigen Probleme...";
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
zahl = Math.round(Math.random()*(256*16*15-1))+256*16;
|
||||||
|
stufe = "Du kannst es perfekt! Du hast genug geübt. Aber ich habe noch eine Aufgabe, die auch für Dich bestimmt zu schwer ist:" ;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
document.write("Bisher hattest Du "+richtige+" Richtige.<br>"+stufe+"<br><br>");
|
||||||
|
document.write("Welche Dualzahl entspricht der Dezimalzahl "+zahl+"?<br><br>");
|
||||||
|
document.write(" <input type=Text name=DualZahl onChange=zahlKorrekt() value='' size=16 maxlength=16> ");
|
||||||
|
document.write(" <input type=Button value=Überprüfen onClick=zahlKorrekt()>");
|
||||||
|
document.Formular.DualZahl.focus();
|
||||||
|
}
|
||||||
|
|
||||||
|
richtige = WertHolen("DezDualR")
|
||||||
|
NeueZahl(richtige);
|
||||||
|
|
||||||
|
function makeDual(i)
|
||||||
|
{
|
||||||
|
n=16777216;
|
||||||
|
t="";
|
||||||
|
while (n>=1)
|
||||||
|
{
|
||||||
|
if (i>=n)
|
||||||
|
{
|
||||||
|
t=t+"1";
|
||||||
|
i=i-n;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
if (t!="") t=t+"0";
|
||||||
|
|
||||||
|
n=n/2;
|
||||||
|
}
|
||||||
|
if (t=="") t="0";
|
||||||
|
return t;
|
||||||
|
}
|
||||||
|
|
||||||
|
function zahlKorrekt()
|
||||||
|
{
|
||||||
|
if (document.Formular.DualZahl.value==makeDual(zahl))
|
||||||
|
{
|
||||||
|
richtige= richtige+1;
|
||||||
|
WertSetzen("DezDualR",richtige,1000*60*60*24);
|
||||||
|
alert("Super! Das war richtig! Schon "+richtige+" Richtige");
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
alert("Schade, leider falsch!\nRichtig wäre "+ makeDual(zahl)+" gewesen.");
|
||||||
|
}
|
||||||
|
window.open("DezDual.html","_self");
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
-->
|
||||||
|
</script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
124
6_Software/UebungBinär/DezHex.html
Normal file
124
6_Software/UebungBinär/DezHex.html
Normal file
|
|
@ -0,0 +1,124 @@
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<title>Übung zum Dualsystem</title>
|
||||||
|
</head>
|
||||||
|
|
||||||
|
|
||||||
|
<body text="#000000" bgcolor="#FFFFFF" link="#FF0000" alink="#FF0000" vlink="#FF0000" onLoad="window.innerHeight=300;window.innerWidth=400">
|
||||||
|
|
||||||
|
<h1>Umrechnung von<br> Dezimal- in Hex-Zahlen</h1>
|
||||||
|
<hr noshade size=1><br>
|
||||||
|
<form name=Formular>
|
||||||
|
<script language="javascript">
|
||||||
|
<!--
|
||||||
|
|
||||||
|
function WertHolen(Name) {
|
||||||
|
var Wert = 0;
|
||||||
|
if(document.cookie) {
|
||||||
|
var Wertstart=document.cookie.indexOf(Name+"=");
|
||||||
|
if (Wertstart == -1)
|
||||||
|
Wert = 0
|
||||||
|
else
|
||||||
|
{
|
||||||
|
Cooki = document.cookie.substring(Wertstart+Name.length+1,document.cookie.length);
|
||||||
|
var Wertende = Cooki.indexOf(";");
|
||||||
|
if (Wertende == -1)
|
||||||
|
Wertende = Cooki.length;
|
||||||
|
Wert = parseInt( Cooki.substring(0,Wertende));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return Wert;
|
||||||
|
}
|
||||||
|
|
||||||
|
function WertSetzen(Bezeichner, Wert, Verfall) {
|
||||||
|
var jetzt = new Date();
|
||||||
|
var Auszeit = new Date(jetzt.getTime() + Verfall);
|
||||||
|
document.cookie = Bezeichner+"="+Wert+"; expires="+Auszeit.toGMTString()+";";
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
function NeueZahl(Richtige)
|
||||||
|
{
|
||||||
|
if(richtige<3)
|
||||||
|
{
|
||||||
|
zahl = Math.round(Math.random()*15)
|
||||||
|
stufe = "Übung macht den Meister...";
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if(richtige<6)
|
||||||
|
{
|
||||||
|
zahl = Math.round(Math.random()*240)+16;
|
||||||
|
stufe = "So langsam hast Du es raus...";
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if(richtige<8)
|
||||||
|
{
|
||||||
|
zahl = Math.round(Math.random()*(256*15-1))+255;
|
||||||
|
stufe = "Jetzt die schwierigen Probleme...";
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
zahl = Math.round(Math.random()*(256*16*15-1))+256*16;
|
||||||
|
stufe = "Du kannst es perfekt! Du hast genug geübt. Aber ich habe noch eine Aufgabe, die auch für Dich bestimmt zu schwer ist:" ;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
document.write("Bisher hattest Du "+richtige+" Richtige.<br>"+stufe+"<br><br>");
|
||||||
|
document.write("Welche Hexadezimalzahl entspricht der Dezimalzahl "+zahl+"?<br><br>");
|
||||||
|
document.write(" <input type=Text name=DualZahl onChange=zahlKorrekt() value='' size=16 maxlength=16> ");
|
||||||
|
document.write(" <input type=Button value=Überprüfen onClick=zahlKorrekt()>");
|
||||||
|
document.Formular.DualZahl.focus();
|
||||||
|
}
|
||||||
|
|
||||||
|
richtige = WertHolen("DezHexR")
|
||||||
|
NeueZahl(richtige);
|
||||||
|
|
||||||
|
function makeDual(i)
|
||||||
|
{
|
||||||
|
t="";
|
||||||
|
while (i>=1)
|
||||||
|
{
|
||||||
|
r=i%16;
|
||||||
|
if (r<10)
|
||||||
|
t=r+t
|
||||||
|
else
|
||||||
|
{
|
||||||
|
switch(r)
|
||||||
|
{
|
||||||
|
case 10: { t="A"+t; break;}
|
||||||
|
case 11: { t="B"+t; break;}
|
||||||
|
case 12: { t="C"+t; break;}
|
||||||
|
case 13: { t="D"+t; break;}
|
||||||
|
case 14: { t="E"+t; break;}
|
||||||
|
case 15: { t="F"+t; break;}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
i= (i-r)/16;
|
||||||
|
}
|
||||||
|
if (t=="") t="0";
|
||||||
|
return t;
|
||||||
|
}
|
||||||
|
|
||||||
|
function zahlKorrekt()
|
||||||
|
{
|
||||||
|
if (document.Formular.DualZahl.value==makeDual(zahl))
|
||||||
|
{
|
||||||
|
richtige= richtige+1;
|
||||||
|
WertSetzen("DezHexR",richtige,1000*60*60*24);
|
||||||
|
alert("Super! Das war richtig! Schon "+richtige+" Richtige");
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
alert("Schade, leider falsch!\nRichtig wäre "+ makeDual(zahl)+" gewesen.");
|
||||||
|
}
|
||||||
|
window.open("DezHex.html","_self");
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
-->
|
||||||
|
</script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
118
6_Software/UebungBinär/DualDez.html
Normal file
118
6_Software/UebungBinär/DualDez.html
Normal file
|
|
@ -0,0 +1,118 @@
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<title>Übung zum Dualsystem</title>
|
||||||
|
</head>
|
||||||
|
|
||||||
|
|
||||||
|
<body text="#000000" bgcolor="#FFFFFF" link="#FF0000" alink="#FF0000" vlink="#FF0000" onLoad="window.innerHeight=300;window.innerWidth=400">
|
||||||
|
|
||||||
|
<h1>Umrechnung von<br> Dual- in Dezimalzahlen</h1>
|
||||||
|
<hr noshade size=1><br>
|
||||||
|
<form name=Formular>
|
||||||
|
<script language="javascript">
|
||||||
|
<!--
|
||||||
|
|
||||||
|
function WertHolen(Name) {
|
||||||
|
var Wert = 0;
|
||||||
|
if(document.cookie) {
|
||||||
|
var Wertstart=document.cookie.indexOf(Name+"=");
|
||||||
|
if (Wertstart == -1)
|
||||||
|
Wert = 0
|
||||||
|
else
|
||||||
|
{
|
||||||
|
Cooki = document.cookie.substring(Wertstart+Name.length+1,document.cookie.length);
|
||||||
|
var Wertende = Cooki.indexOf(";");
|
||||||
|
if (Wertende == -1)
|
||||||
|
Wertende = Cooki.length;
|
||||||
|
Wert = parseInt( Cooki.substring(0,Wertende));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return Wert;
|
||||||
|
}
|
||||||
|
|
||||||
|
function WertSetzen(Bezeichner, Wert, Verfall) {
|
||||||
|
var jetzt = new Date();
|
||||||
|
var Auszeit = new Date(jetzt.getTime() + Verfall);
|
||||||
|
document.cookie = Bezeichner+"="+Wert+"; expires="+Auszeit.toGMTString()+";";
|
||||||
|
}
|
||||||
|
|
||||||
|
function makeDual(i)
|
||||||
|
{
|
||||||
|
n=16777216;
|
||||||
|
t="";
|
||||||
|
while (n>=1)
|
||||||
|
{
|
||||||
|
if (i>=n)
|
||||||
|
{
|
||||||
|
t=t+"1";
|
||||||
|
i=i-n;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
if (t!="") t=t+"0";
|
||||||
|
|
||||||
|
n=n/2;
|
||||||
|
}
|
||||||
|
if (t=="") t="0";
|
||||||
|
return t;
|
||||||
|
}
|
||||||
|
|
||||||
|
function NeueZahl(Richtige)
|
||||||
|
{
|
||||||
|
if(richtige<3)
|
||||||
|
{
|
||||||
|
zahl = Math.round(Math.random()*15)
|
||||||
|
stufe = "Übung macht den Meister...";
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if(richtige<6)
|
||||||
|
{
|
||||||
|
zahl = Math.round(Math.random()*240)+16;
|
||||||
|
stufe = "So langsam hast Du es raus...";
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if(richtige<8)
|
||||||
|
{
|
||||||
|
zahl = Math.round(Math.random()*(256*15-1))+255;
|
||||||
|
stufe = "Jetzt die schwierigen Probleme...";
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
zahl = Math.round(Math.random()*(256*16*15-1))+256*16;
|
||||||
|
stufe = "Du kannst es perfekt! Du hast genug geübt. Aber ich habe noch eine Aufgabe, die auch für Dich bestimmt zu schwer ist:" ;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
document.write("Bisher hattest Du "+richtige+" Richtige.<br>"+stufe+"<br><br>");
|
||||||
|
document.write("Welche Dezimalzahl entspricht der Dualzahl "+makeDual(zahl)+"?<br><br>");
|
||||||
|
document.write(" <input type=Text name=DualZahl onChange=zahlKorrekt() value='' size=16 maxlength=16> ");
|
||||||
|
document.write(" <input type=Button value=Überprüfen onClick=zahlKorrekt()>");
|
||||||
|
document.Formular.DualZahl.focus();
|
||||||
|
}
|
||||||
|
|
||||||
|
richtige = WertHolen("DualDezR")
|
||||||
|
NeueZahl(richtige);
|
||||||
|
|
||||||
|
|
||||||
|
function zahlKorrekt()
|
||||||
|
{
|
||||||
|
if (document.Formular.DualZahl.value==zahl)
|
||||||
|
{
|
||||||
|
richtige= richtige+1;
|
||||||
|
WertSetzen("DualDezR",richtige,1000*60*60*24);
|
||||||
|
alert("Super! Das war richtig! Schon "+richtige+" Richtige");
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
alert("Schade, leider falsch!\nRichtig wäre "+ zahl+" gewesen.");
|
||||||
|
}
|
||||||
|
window.open("DualDez.html","_self");
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
-->
|
||||||
|
</script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
126
6_Software/UebungBinär/HexDez.html
Normal file
126
6_Software/UebungBinär/HexDez.html
Normal file
|
|
@ -0,0 +1,126 @@
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<title>Übung zum Dualsystem</title>
|
||||||
|
</head>
|
||||||
|
|
||||||
|
|
||||||
|
<body text="#000000" bgcolor="#FFFFFF" link="#FF0000" alink="#FF0000" vlink="#FF0000" onLoad="window.innerHeight=300;window.innerWidth=400">
|
||||||
|
|
||||||
|
<h1>Umrechnung von<br> Hex- in Dezimalzahlen</h1>
|
||||||
|
<hr noshade size=1><br>
|
||||||
|
<form name=Formular>
|
||||||
|
<script language="javascript">
|
||||||
|
<!--
|
||||||
|
|
||||||
|
function WertHolen(Name) {
|
||||||
|
var Wert = 0;
|
||||||
|
if(document.cookie) {
|
||||||
|
var Wertstart=document.cookie.indexOf(Name+"=");
|
||||||
|
if (Wertstart == -1)
|
||||||
|
Wert = 0
|
||||||
|
else
|
||||||
|
{
|
||||||
|
Cooki = document.cookie.substring(Wertstart+Name.length+1,document.cookie.length);
|
||||||
|
var Wertende = Cooki.indexOf(";");
|
||||||
|
if (Wertende == -1)
|
||||||
|
Wertende = Cooki.length;
|
||||||
|
Wert = parseInt( Cooki.substring(0,Wertende));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return Wert;
|
||||||
|
}
|
||||||
|
|
||||||
|
function WertSetzen(Bezeichner, Wert, Verfall) {
|
||||||
|
var jetzt = new Date();
|
||||||
|
var Auszeit = new Date(jetzt.getTime() + Verfall);
|
||||||
|
document.cookie = Bezeichner+"="+Wert+"; expires="+Auszeit.toGMTString()+";";
|
||||||
|
}
|
||||||
|
|
||||||
|
function makeDual(i)
|
||||||
|
{
|
||||||
|
t="";
|
||||||
|
while (i>=1)
|
||||||
|
{
|
||||||
|
r=i%16;
|
||||||
|
if (r<10)
|
||||||
|
t=r+t
|
||||||
|
else
|
||||||
|
{
|
||||||
|
switch(r)
|
||||||
|
{
|
||||||
|
case 10: { t="A"+t; break;}
|
||||||
|
case 11: { t="B"+t; break;}
|
||||||
|
case 12: { t="C"+t; break;}
|
||||||
|
case 13: { t="D"+t; break;}
|
||||||
|
case 14: { t="E"+t; break;}
|
||||||
|
case 15: { t="F"+t; break;}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
i= (i-r)/16;
|
||||||
|
}
|
||||||
|
if (t=="") t="0";
|
||||||
|
return t;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
function NeueZahl(Richtige)
|
||||||
|
{
|
||||||
|
if(richtige<3)
|
||||||
|
{
|
||||||
|
zahl = Math.round(Math.random()*15)
|
||||||
|
stufe = "Übung macht den Meister...";
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if(richtige<6)
|
||||||
|
{
|
||||||
|
zahl = Math.round(Math.random()*240)+16;
|
||||||
|
stufe = "So langsam hast Du es raus...";
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if(richtige<8)
|
||||||
|
{
|
||||||
|
zahl = Math.round(Math.random()*(256*15-1))+255;
|
||||||
|
stufe = "Jetzt die schwierigen Probleme...";
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
zahl = Math.round(Math.random()*(256*16*15-1))+256*16;
|
||||||
|
stufe = "Du kannst es perfekt! Du hast genug geübt. Aber ich habe noch eine Aufgabe, die auch für Dich bestimmt zu schwer ist:" ;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
document.write("Bisher hattest Du "+richtige+" Richtige.<br>"+stufe+"<br><br>");
|
||||||
|
document.write("Welche Dezimalzahl entspricht der Hexadezimalzahl "+makeDual(zahl)+"?<br><br>");
|
||||||
|
document.write(" <input type=Text name=DualZahl onChange=zahlKorrekt() value='' size=16 maxlength=16> ");
|
||||||
|
document.write(" <input type=Button value=Überprüfen onClick=zahlKorrekt()>");
|
||||||
|
document.Formular.DualZahl.focus();
|
||||||
|
}
|
||||||
|
|
||||||
|
richtige = WertHolen("HexDezR")
|
||||||
|
NeueZahl(richtige);
|
||||||
|
|
||||||
|
|
||||||
|
function zahlKorrekt()
|
||||||
|
{
|
||||||
|
if (document.Formular.DualZahl.value==zahl)
|
||||||
|
{
|
||||||
|
richtige= richtige+1;
|
||||||
|
WertSetzen("HexDezR",richtige,1000*60*60*24);
|
||||||
|
alert("Super! Das war richtig! Schon "+richtige+" Richtige");
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
alert("Schade, leider falsch!\nRichtig wäre "+ zahl+" gewesen.");
|
||||||
|
}
|
||||||
|
window.open("HexDez.html","_self");
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
-->
|
||||||
|
</script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
BIN
6_Software/UebungBinär/No.gif
Normal file
BIN
6_Software/UebungBinär/No.gif
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 901 B |
BIN
6_Software/UebungBinär/Ok.gif
Normal file
BIN
6_Software/UebungBinär/Ok.gif
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 892 B |
210
6_Software/UebungBinär/bitbyte.html
Normal file
210
6_Software/UebungBinär/bitbyte.html
Normal file
|
|
@ -0,0 +1,210 @@
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<title>Dokumente und Algorithmen, Bits und Bytes</title>
|
||||||
|
<meta name="author" content="Roland Mechling">
|
||||||
|
<meta name="generator" content="Ulli Meybohms HTML EDITOR">
|
||||||
|
</head>
|
||||||
|
<body text="#000000" bgcolor="#FFFFFF" link="#FF0000" alink="#FF0000" vlink="#FF0000">
|
||||||
|
<h2><div align="center">1 Bits und Bytes<br></div></h2>
|
||||||
|
<div align="right">
|
||||||
|
<a href="hexview.html"><img src="./buttons/pf_bl_re.jpg" alt="Zum nächsten Kapitel" border="0"></a>
|
||||||
|
</div>
|
||||||
|
<hr noshade size="1">
|
||||||
|
<p>
|
||||||
|
"Digitale Informationsverarbeitung" bedeutet, daß Informationen in <b>digitaler Form</b> gelesen, bearbeitet, gespeichert und transportiert wird. Die kleinste digitale Informationseinheit ist das <b>Bit</b> (Kunstwort aus "<b>bi</b>nary digi<b>t</b>"), das nur 2 Zustände annehmen kann. Diese beiden Zustände werden je nach Kontext mit willkürlichen Namen belegt, z.B. "H" und "L" (für "high" und "low") oder "0" und "1".<br>
|
||||||
|
<br>
|
||||||
|
Im Computer werden selten einzelne Bits verarbeitet. Die kleinste Informationseinheit, auf die ein Rechner leicht zugreifen kann, ist ein <b>Byte</b>: ein Byte besteht aus 8 Bit. Nehmen wir für die Darstellung der einzelnen Bitwerte die obige "0/1"-Repräsentation, dann läßt sich ein Byte als eine Folge von 8 Ziffern ("0/1-Entscheidungen") darstellen, z.B.: <nobr>"1001 1101"</nobr> (mit einem Leerzeichen in der Mitte, um die Lesbarkeit zu verbessern). Da jedes Bit 2 verschiedene Zustände annehmen kann, kann ein Byte 2<sup>8</sup>, also 256 verschiedene Zustände annehmen. <br>
|
||||||
|
<br>
|
||||||
|
Interpretiert man ein Byte als die Darstellung einer natürlichen Zahl im Dual-System, dann lassen sich in einem Byte die 256 Zahlen von 0 bis 2<sup>8</sup> - 1, also von 0 bis 255 darstellen. Das Byte "1001 1101" könnte also die natürliche Zahl</p>
|
||||||
|
|
||||||
|
<table border="0" frame="void" cellspacing=-1 >
|
||||||
|
<tr align="center">
|
||||||
|
<td> Stellenwerte</td><td></td>
|
||||||
|
<td> <font color="#0000FF">2<sup>7</sup> </font></td><td></td>
|
||||||
|
<td> <font color="#0000FF">2<sup>6</sup> </font></td><td></td>
|
||||||
|
<td> <font color="#0000FF">2<sup>5</sup> </font></td><td></td>
|
||||||
|
<td> <font color="#0000FF">2<sup>4</sup> </font></td><td></td>
|
||||||
|
<td> <font color="#0000FF">2<sup>3</sup> </font></td><td></td>
|
||||||
|
<td> <font color="#0000FF">2<sup>2</sup> </font></td><td></td>
|
||||||
|
<td> <font color="#0000FF">2<sup>1</sup> </font></td><td></td>
|
||||||
|
<td> <font color="#0000FF">2<sup>0</sup> </font></td>
|
||||||
|
<td> </td>
|
||||||
|
</tr>
|
||||||
|
<tr align="center">
|
||||||
|
<td> <font color="#FF0000">1001 1101</font>b</td><td> = </td>
|
||||||
|
<td> <font color="#FF0000">1</font>*<font color="#0000FF">2<sup>7</sup></font></td><td> + </td>
|
||||||
|
<td> <font color="#FF0000">0</font>*<font color="#0000FF">2<sup>6</sup></font></td><td> + </td>
|
||||||
|
<td> <font color="#FF0000">0</font>*<font color="#0000FF">2<sup>5</sup></font></td><td> + </td>
|
||||||
|
<td> <font color="#FF0000">1</font>*<font color="#0000FF">2<sup>4</sup></font></td><td> + </td>
|
||||||
|
<td> <font color="#FF0000">1</font>*<font color="#0000FF">2<sup>3</sup></font></td><td> + </td>
|
||||||
|
<td> <font color="#FF0000">1</font>*<font color="#0000FF">2<sup>2</sup></font></td><td> + </td>
|
||||||
|
<td> <font color="#FF0000">0</font>*<font color="#0000FF">2<sup>1</sup></font></td><td> + </td>
|
||||||
|
<td> <font color="#FF0000">1</font>*<font color="#0000FF">2<sup>0</sup></font></td>
|
||||||
|
</tr>
|
||||||
|
<tr align="center">
|
||||||
|
<td> 1001 1101b</td><td> = </td>
|
||||||
|
<td> 128</td><td> + </td>
|
||||||
|
<td> 0 </td><td> + </td>
|
||||||
|
<td> 0 </td><td> + </td>
|
||||||
|
<td> 16 </td><td> + </td>
|
||||||
|
<td> 8 </td><td> + </td>
|
||||||
|
<td> 4 </td><td> + </td>
|
||||||
|
<td> 0 </td><td> + </td>
|
||||||
|
<td> 1 </td><td> = </td>
|
||||||
|
<td> 157</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
<p>bedeuten. Um Dualzahlen von Dezimalzahlen zu unterscheiden, hängen wir an die "0/1"-Folge einer Dualzahl ein kleines "b" (für "binäre" Zahl, d.h. Dualzahl), z.B.:<br>
|
||||||
|
<ul>1011b = 1*2<sup>3</sup> + 0*2<sup>2</sup> + 1*2<sup>1</sup> + 1*2<sup>0</sup> = 8 + 2 + 1 = 11</ul>
|
||||||
|
<br>
|
||||||
|
Für die Computertechnik hat sich die übersichtlichere Darstellung von Bytes im Hex-System durchgesetzt. Dies ist das Stellenwertsystem zur Basis 16. Um Hex-Zahlen von Zahlen in Dezimal-Darstellung zu unterscheiden, fügen wir an die Ziffernfolge von Hex-Zahlen ein kleines "h" an:</p>
|
||||||
|
<table border="0" frame="void" cellspacing=-1 >
|
||||||
|
<tr align="center">
|
||||||
|
<td> Stellenwerte</td><td></td>
|
||||||
|
<td> <font color="#0000FF">16<sup>2</sup> </font></td><td></td>
|
||||||
|
<td> <font color="#0000FF">16<sup>1</sup> </font></td><td></td>
|
||||||
|
<td> <font color="#0000FF">16<sup>0</sup> </font></td>
|
||||||
|
<td> </td>
|
||||||
|
</tr>
|
||||||
|
<tr align="center">
|
||||||
|
<td> <font color="#FF0000">23</font>h</td><td> = </td>
|
||||||
|
<td></td><td></td> <td> <font color="#FF0000">2</font>*<font color="#0000FF">16<sup>1</sup></font></td><td> + </td>
|
||||||
|
<td> <font color="#FF0000">3</font>*<font color="#0000FF">16<sup>0</sup></font></td>
|
||||||
|
</tr>
|
||||||
|
<tr align="center">
|
||||||
|
<td> 23h</td><td> = </td>
|
||||||
|
<td></td><td></td>
|
||||||
|
<td>32</td><td> + </td>
|
||||||
|
<td>3</td><td> = </td>
|
||||||
|
<td>35</td>
|
||||||
|
</tr>
|
||||||
|
<tr><td></td> </tr>
|
||||||
|
<tr align="center">
|
||||||
|
<td> <font color="#FF0000">104</font>h</td><td> = </td>
|
||||||
|
<td> <font color="#FF0000">1</font>*<font color="#0000FF">16<sup>2</sup></font></td><td> + </td>
|
||||||
|
<td> <font color="#FF0000">0</font>*<font color="#0000FF">16<sup>1</sup></font></td><td> + </td>
|
||||||
|
<td> <font color="#FF0000">4</font>*<font color="#0000FF">16<sup>0</sup></font></td>
|
||||||
|
</tr>
|
||||||
|
<tr align="center">
|
||||||
|
<td>104h</td><td> = </td>
|
||||||
|
<td>256</td><td> + </td>
|
||||||
|
<td>0</td><td> + </td>
|
||||||
|
<td>4</td><td> = </td>
|
||||||
|
<td>260</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
<p> Zur Darstellung der Stellenwerte größer als 9 brauchen wir im Hex-System neue Ziffern: man benützt dazu die ersten Buchstaben des Alphabets. Im Hex-System kann also jede Stelle mit einer der Ziffern {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F} belegt werden:
|
||||||
|
</p>
|
||||||
|
<table border="0" frame="void" cellspacing=-1 >
|
||||||
|
<tr align="center">
|
||||||
|
<td> Stellenwerte</td><td></td>
|
||||||
|
<td> <font color="#0000FF">16<sup>1</sup> </font></td><td></td>
|
||||||
|
<td> <font color="#0000FF">16<sup>0</sup> </font></td>
|
||||||
|
<td> </td>
|
||||||
|
</tr>
|
||||||
|
<tr align="center">
|
||||||
|
<td> <font color="#FF0000">AC</font>h</td><td> = </td>
|
||||||
|
<td> <font color="#FF0000">10</font>*<font color="#0000FF">16<sup>1</sup></font></td><td> + </td>
|
||||||
|
<td> <font color="#FF0000">12</font>*<font color="#0000FF">16<sup>0</sup></font></td>
|
||||||
|
</tr>
|
||||||
|
<tr align="center">
|
||||||
|
<td> ACh</td><td> = </td>
|
||||||
|
<td> 160</td><td> + </td>
|
||||||
|
<td> 12 </td><td> = </td>
|
||||||
|
<td> 172 </td>
|
||||||
|
</tr>
|
||||||
|
<tr><td></td> </tr>
|
||||||
|
<tr align="center">
|
||||||
|
<td> <font color="#FF0000">FF</font>h</td><td> = </td>
|
||||||
|
<td> <font color="#FF0000">15</font>*<font color="#0000FF">16<sup>1</sup></font></td><td> + </td>
|
||||||
|
<td> <font color="#FF0000">15</font>*<font color="#0000FF">16<sup>0</sup></font></td>
|
||||||
|
</tr>
|
||||||
|
<tr align="center">
|
||||||
|
<td> FFh</td><td> = </td>
|
||||||
|
<td> 240</td><td> + </td>
|
||||||
|
<td> 15 </td><td> = </td>
|
||||||
|
<td> 255 </td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
Dies sind Beispiele für den numerisch interpretierten Inhalt eines Byte. Ein Byte wird also im Hexsystem immer als eine 2-stellige Zahl dargestellt.<br>
|
||||||
|
<br>
|
||||||
|
<br>
|
||||||
|
<font size="+1"><b>Übungen:</b></font><br>
|
||||||
|
|
||||||
|
<script language="javascript">
|
||||||
|
<!--
|
||||||
|
|
||||||
|
function WertHolen(Name) {
|
||||||
|
var Wert = 0;
|
||||||
|
if(document.cookie) {
|
||||||
|
var Wertstart=document.cookie.indexOf(Name+"=");
|
||||||
|
if (Wertstart == -1)
|
||||||
|
Wert = 0
|
||||||
|
else
|
||||||
|
{
|
||||||
|
Cooki = document.cookie.substring(Wertstart+Name.length+1,document.cookie.length);
|
||||||
|
var Wertende = Cooki.indexOf(";");
|
||||||
|
if (Wertende == -1)
|
||||||
|
Wertende = Cooki.length;
|
||||||
|
Wert = parseInt( Cooki.substring(0,Wertende));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return Wert;
|
||||||
|
}
|
||||||
|
-->
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<ol start="1" type="1">
|
||||||
|
<li><a href="DualDez.html" target="blank" >Umrechnung von Dual- in Dezimalzahlen.</a>
|
||||||
|
<script language="javascript">
|
||||||
|
<!--
|
||||||
|
if (WertHolen("DualDezR")>6)
|
||||||
|
document.write("<img src=Ok.gif>")
|
||||||
|
else
|
||||||
|
document.write("<img src=No.gif>") ;
|
||||||
|
-->
|
||||||
|
</script>
|
||||||
|
<br></li><br>
|
||||||
|
<li><a href="DezDual.html" target="blank" >Umrechnung von Dezimal- in Dualzahlen.</a>
|
||||||
|
<script language="javascript">
|
||||||
|
<!--
|
||||||
|
if (WertHolen("DezDualR")>6)
|
||||||
|
document.write("<img src=Ok.gif>")
|
||||||
|
else
|
||||||
|
document.write("<img src=No.gif>") ;
|
||||||
|
-->
|
||||||
|
</script>
|
||||||
|
<br></li><br>
|
||||||
|
<li><a href="HexDez.html" target="blank" >Umrechnung von Hex- in Dezimalzahlen.</a>
|
||||||
|
<script language="javascript">
|
||||||
|
<!--
|
||||||
|
if (WertHolen("HexDezR")>6)
|
||||||
|
document.write("<img src=Ok.gif>")
|
||||||
|
else
|
||||||
|
document.write("<img src=No.gif>") ;
|
||||||
|
-->
|
||||||
|
</script>
|
||||||
|
<br></li><br>
|
||||||
|
<li><a href="DezHex.html" target="blank" >Umrechnung von Dezimal- in Hexzahlen.</a>
|
||||||
|
<script language="javascript">
|
||||||
|
<!--
|
||||||
|
if (WertHolen("DezHexR")>6)
|
||||||
|
document.write("<img src=Ok.gif>")
|
||||||
|
else
|
||||||
|
document.write("<img src=No.gif>") ;
|
||||||
|
-->
|
||||||
|
</script>
|
||||||
|
<br></li><br>
|
||||||
|
</ol><br>
|
||||||
|
<br>
|
||||||
|
<hr noshade size="1">
|
||||||
|
<div align="center">
|
||||||
|
<a href="hexview.html"><img src="./buttons/pf_bl_re.jpg" alt="Zum nächsten Kapitel" border="0"></a>
|
||||||
|
</div>
|
||||||
|
<br>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
33
readme.adoc
33
readme.adoc
|
|
@ -1,11 +1,34 @@
|
||||||
= Material :
|
= Material der ZPG Informatik 7:
|
||||||
|
|
||||||
|===
|
|===
|
||||||
|Zuordnung|
|
|Zuordnung| Daten und Codierung
|
||||||
|Klassenstufe|
|
|Klassenstufe| Inf 7
|
||||||
|Bildungsplanbezug |
|
|Bildungsplanbezug |
|
||||||
|Werkzeug|
|
|Werkzeug| keine
|
||||||
|Autoren|
|
|Autoren| Monika Eisenmann
|
||||||
|===
|
|===
|
||||||
|
|
||||||
== Inhalt
|
== Inhalt
|
||||||
|
|
||||||
|
=== Gruppenarbeit zu QR-Code, Blindenschrift und Morsecode
|
||||||
|
01_duc_einstieg_gruppenarbeit.odt
|
||||||
|
|
||||||
|
=== Zwei weitere Codierungen: Eiercode und Barcode
|
||||||
|
02_duc_eiercode_barcode.odt
|
||||||
|
|
||||||
|
=== Binärzahlen kennen lernen
|
||||||
|
03_duc_einstieg_binaersystem.odt
|
||||||
|
|
||||||
|
=== Übungen zur Umrechnung
|
||||||
|
04_duc_binaersystem_uebungen.odt +
|
||||||
|
04_duc_magie_mit_binaerzahlen.odt
|
||||||
|
|
||||||
|
=== Textcodierung
|
||||||
|
05_duc_textcodierung.odt
|
||||||
|
|
||||||
|
=== Grafikcodierung
|
||||||
|
06_duc_grafikcodierung.odt
|
||||||
|
|
||||||
|
=== Wiederholung des ganzen Kapitels
|
||||||
|
07_duc_spiel_codierung.odt
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue