<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="de">
	<id>http://cgd.idea-sketch.com/index.php?action=history&amp;feed=atom&amp;title=L%C3%B6sungsvorschlag_5.3_-_Aufgabe_1</id>
	<title>Lösungsvorschlag 5.3 - Aufgabe 1 - Versionsgeschichte</title>
	<link rel="self" type="application/atom+xml" href="http://cgd.idea-sketch.com/index.php?action=history&amp;feed=atom&amp;title=L%C3%B6sungsvorschlag_5.3_-_Aufgabe_1"/>
	<link rel="alternate" type="text/html" href="http://cgd.idea-sketch.com/index.php?title=L%C3%B6sungsvorschlag_5.3_-_Aufgabe_1&amp;action=history"/>
	<updated>2026-08-15T00:39:02Z</updated>
	<subtitle>Versionsgeschichte dieser Seite in ComeniusWiki</subtitle>
	<generator>MediaWiki 1.43.9</generator>
	<entry>
		<id>http://cgd.idea-sketch.com/index.php?title=L%C3%B6sungsvorschlag_5.3_-_Aufgabe_1&amp;diff=1807&amp;oldid=prev</id>
		<title>B.Schiller am 26. Januar 2014 um 16:43 Uhr</title>
		<link rel="alternate" type="text/html" href="http://cgd.idea-sketch.com/index.php?title=L%C3%B6sungsvorschlag_5.3_-_Aufgabe_1&amp;diff=1807&amp;oldid=prev"/>
		<updated>2014-01-26T16:43:50Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;de&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Nächstältere Version&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Version vom 26. Januar 2014, 16:43 Uhr&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Zeile 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Zeile 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;public class MAGIC {&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;public class MAGIC {&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;//Deklaration und &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Instantiierung des Arrays&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;//Deklaration und Initialisierung des Arrays&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;private int [ ][ ] mq = new int [3][3];&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;private int [ ][ ] mq = {{4,9,2},{3,5,7},{8,1,6}};&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt; &lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;//&lt;/del&gt;Initialisierung des Arrays &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;mit den Beispielwerten&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;private int [ ][ ] mq ={{4,9,2},{3,5,7},{8,1,6}};&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;//Testmethode mit sum als Parameter für die Testsumme (hier 15)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;//Testmethode mit sum als Parameter für die Testsumme (hier 15)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>B.Schiller</name></author>
	</entry>
	<entry>
		<id>http://cgd.idea-sketch.com/index.php?title=L%C3%B6sungsvorschlag_5.3_-_Aufgabe_1&amp;diff=1330&amp;oldid=prev</id>
		<title>B.Schiller: Die Seite wurde neu angelegt: „&lt;pre&gt; public class MAGIC { //Deklaration und Instantiierung des Arrays private int [ ][ ] mq = new int [3][3];  //Initialisierung des Arrays mit den Beispielwerte…“</title>
		<link rel="alternate" type="text/html" href="http://cgd.idea-sketch.com/index.php?title=L%C3%B6sungsvorschlag_5.3_-_Aufgabe_1&amp;diff=1330&amp;oldid=prev"/>
		<updated>2013-11-01T13:59:33Z</updated>

		<summary type="html">&lt;p&gt;Die Seite wurde neu angelegt: „&amp;lt;pre&amp;gt; public class MAGIC { //Deklaration und Instantiierung des Arrays private int [ ][ ] mq = new int [3][3];  //Initialisierung des Arrays mit den Beispielwerte…“&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Neue Seite&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;br /&gt;
public class MAGIC {&lt;br /&gt;
//Deklaration und Instantiierung des Arrays&lt;br /&gt;
private int [ ][ ] mq = new int [3][3];&lt;br /&gt;
&lt;br /&gt;
//Initialisierung des Arrays mit den Beispielwerten&lt;br /&gt;
private int [ ][ ] mq ={{4,9,2},{3,5,7},{8,1,6}};&lt;br /&gt;
&lt;br /&gt;
//Testmethode mit sum als Parameter für die Testsumme (hier 15)&lt;br /&gt;
public void test(int sum){&lt;br /&gt;
if (mq [0][0]+mq [0][1]+mq [0][2] == sum &amp;amp;&amp;amp;&lt;br /&gt;
mq [1][0]+mq [1][1]+mq [1][2] == sum &amp;amp;&amp;amp;&lt;br /&gt;
mq [2][0]+mq [2][1]+mq [2][2] == sum &amp;amp;&amp;amp;&lt;br /&gt;
mq [0][0]+mq [1][0]+mq [2][0] == sum &amp;amp;&amp;amp;&lt;br /&gt;
mq [0][1]+mq [1][1]+mq [2][1] == sum &amp;amp;&amp;amp;&lt;br /&gt;
mq [0][2]+mq [1][2]+mq [2][2] == sum &amp;amp;&amp;amp;&lt;br /&gt;
mq [0][0]+mq [1][1]+mq [2][2] == sum &amp;amp;&amp;amp;&lt;br /&gt;
mq [2][0]+mq [1][1]+mq [0][2] == sum )&lt;br /&gt;
{System.out.println(&amp;quot;Es handelt sich um ein magisches Quadrat&amp;quot;);}&lt;br /&gt;
else {System.out.println(&amp;quot;Es handelt sich nicht um ein magisches Quadrat&amp;quot;);};&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Vorschläge zur Erweiterung:&lt;br /&gt;
* Mit drei auf Schleifen basierenden Methoden kann die Summe von Zeilen, Spalten und Diagonalen allgemein für beliebig große zweidimensionale Felder berechnet werden. Verallgemeinere das Programm so, dass magische Quadrate beliebiger Größe gestestet werden können.&lt;br /&gt;
* Schreibe ein Programm, das automatisch magische Quadrate erzeugt. Anleitungen finden sich z.B. hier:&lt;br /&gt;
**[http://www.google.de/url?sa=t&amp;amp;rct=j&amp;amp;q=&amp;amp;esrc=s&amp;amp;source=web&amp;amp;cd=2&amp;amp;ved=0CDQQFjAB&amp;amp;url=http%3A%2F%2Fwww.krgho.de%2Fpdf%2Ffacharbeit%2FKonstruktion.pdf&amp;amp;ei=bK5zUuOTM6S34AS-toCYDg&amp;amp;usg=AFQjCNH_fgbAxKbcocaa8L1Gal1LjhzB7w&amp;amp;bvm=bv.55819444,d.bGE Magische Quadrate (pdf)]&lt;br /&gt;
**[http://www.hp-gramatke.de/magic_sq/german/page0030.htm Ungerade magische Quadrate]&lt;/div&gt;</summary>
		<author><name>B.Schiller</name></author>
	</entry>
</feed>