Das neue Auswendig lernen und die neuen Übungen - 0003

Benutzeravatar
davidvajda.de
Site Admin
Beiträge: 1555
Registriert: Di Jul 18, 2023 8:36 pm
Wohnort: D-72072, Tübingen
Kontaktdaten:

Re: Das neue Auswendig lernen und die neuen Übungen - 0003

Beitrag von davidvajda.de »

Code: Alles auswählen

<?php
session_id ();
?>

<form method="POST" action="./form20240516.php">
<input type="text" name="form20240516a"></input>
<input type="submit">
</form>

<?php
echo session_id () . "<br>\n";

setcookie ("form20240516b", "Ich bin das erste Cookie 1", time () + 3600);

echo htmlentities ($_POST ["form20240516a"]) . "<br>\n";
echo htmlentities ($_COOKIE ["form20240516b"]) . "<br>\n";
echo htmlentities ($_COOKIE ["form20240516c"]) . "<br>\n";

session_destroy ();
?>

Bild

Code: Alles auswählen

POST http://localhost/mysql20240217/20240516/form20240516.php HTTP/1.1
host: localhost
Cookie: form20240516c=Hallo, ich bin das zweite Cookie
Content-Length: 38
Content-Type: application/x-www-form-urlencoded

form20240516a=Hallo, ich bin das Datum

Code: Alles auswählen

Trying ::1...
Connected to localhost.
Escape character is '^]'.
HTTP/1.1 200 OK
Date: Thu, 16 May 2024 08:26:21 GMT
Server: Apache/2.4.57 (Debian)
Set-Cookie: form20240516b=Ich%20bin%20das%20erste%20Cookie%201; expires=Thu, 16 May 2024 09:26:21 GMT; Max-Age=3600
Vary: Accept-Encoding
Content-Length: 206
Content-Type: text/html; charset=UTF-8


<form method="POST" action="./form20240516.php">
<input type="text" name="form20240516a"></input>
<input type="submit">
</form>

<br>
Hallo, ich bin das Datum<br>
<br>
Hallo, ich bin das zweite Cookie<br>

Code: Alles auswählen

<?php
session_start ();

include ("/home/david/mysqldata.php");

$db = new PDO ("mysql: host=localhost", $MYSQL_USER, $MYSQL_PASSWORD);

$sql = "CREATE DATABASE mysql20240516" . session_id () . "; ";
$db->query ($sql);

$sql = "USE mysql20240516" . session_id () . "; ";
$db->query ($sql);

$sql = "CREATE TABLE a (x1 INTEGER, x2 INTEGER); CREATE TABLE b (y1 INTEGER, y2 INTEGER); ";
$db->query ($sql);

$sql = "INSERT INTO a (x1, x2) VALUES (0, 0); ";
$db->query ($sql);

$sql = "INSERT INTO a (x1, x2) VALUES (0, 1); ";
$db->query ($sql);

$sql = "INSERT INTO a (x1, x2) VALUES (1, 0); ";
$db->query ($sql);

$sql = "INSERT INTO a (x1, x2) VALUES (1, 1); ";
$db->query ($sql);

$sql = "INSERT INTO a (x1, x2) VALUES (2, 7); ";
$db->query ($sql);

$sql = "INSERT INTO b (y1, y2) VALUES (0, 1); ";
$db->query ($sql);

$sql = "INSERT INTO b (y1, y2) VALUES (1, 0); ";
$db->query ($sql);

$sql = "INSERT INTO b (y1, y2) VALUES (2, 7); ";
$db->query ($sql);

$sql = "SELECT x1, x2 FROM a; ";
$stmt = $db->query ($sql);
while ($row = $stmt -> fetch ())
    echo $row [0] . ", " . $row [1] . "; ";
echo "<br>\n";

$sql = "SELECT y1, y2 FROM b; ";
$stmt = $db->query ($sql);
while ($row = $stmt -> fetch ())
    echo $row [0] . ", " . $row [1] . "; ";
echo "<br>\n";

$sql = "SELECT x1, x2, y1, y2 FROM a INNER JOIN b ON a.x1 = b.y1; ";
$stmt = $db->query ($sql);
while ($row = $stmt -> fetch ())
    echo $row [0] . ", " . $row [1] . ", " . $row [2] . ", " . $row [3] . "; ";
echo "<br>\n";

$sql = "DROP DATABASE mysql20240516" . session_id () . "; ";
$db->query ($sql);

session_destroy ();
?>

Code: Alles auswählen

0, 0; 0, 1; 1, 0; 1, 1; 2, 7; <br>
0, 1; 1, 0; 2, 7; <br>
0, 0, 0, 1; 0, 1, 0, 1; 1, 0, 1, 0; 1, 1, 1, 0; 2, 7, 2, 7; <br>

Code: Alles auswählen

<?php
session_start ();

include ("/home/david/mysqldata.php");

$db = new PDO ("mysql: host=localhost", $MYSQL_USER, $MYSQL_PASSWORD);

$sql = "CREATE DATABASE q20240516" . session_id () . "; ";
$db->query ($sql);

$sql = "USE q20240516" . session_id () . "; ";
$db->query ($sql);

$sql = "CREATE TABLE a (x INTEGER); CREATE TABLE b (x INTEGER); CREATE TABLE c (x INTEGER); ";
$db->query ($sql);

for ($i = 0;  $i < 24;  $i++) {
    $sql = "INSERT INTO a (x) VALUES (" . rand () % 32 . "); ";
    $sql .= "INSERT INTO b (x) VALUES (" . rand () % 64 . "); ";
    $sql .= "INSERT INTO c (x) VALUES (" . rand () % 128 . "); ";
    $db->query ($sql);
}

$sql = "SELECT x FROM (SELECT x FROM a UNION SELECT x FROM b) x ORDER BY x; ";
$stmt = $db->query ($sql);
while ($row = $stmt -> fetch ())
    echo $row [0] . ", ";
echo "<br>\n";

$sql = "SELECT x FROM (SELECT x FROM a UNION SELECT x FROM c) x ORDER BY x; ";
$stmt = $db->query ($sql);
while ($row = $stmt -> fetch ())
    echo $row [0] . ", ";
echo "<br>\n";

$sql = "SELECT x FROM (SELECT x FROM b UNION SELECT x FROM c) x ORDER BY x; ";
$stmt = $db->query ($sql);
while ($row = $stmt -> fetch ())
    echo $row [0] . ", ";
echo "<br>\n";

$sql = "SELECT x FROM (SELECT x FROM a INTERSECT SELECT x FROM b) x ORDER BY x; ";
$stmt = $db->query ($sql);
while ($row = $stmt -> fetch ())
    echo $row [0] . ", ";
echo "<br>\n";

$sql = "SELECT x FROM (SELECT x FROM a INTERSECT SELECT x FROM c) x ORDER BY x; ";
$stmt = $db->query ($sql);
while ($row = $stmt -> fetch ())
    echo $row [0] . ", ";
echo "<br>\n";

$sql = "SELECT x FROM (SELECT x FROM b INTERSECT SELECT x FROM c) x ORDER BY x; ";
$stmt = $db->query ($sql);
while ($row = $stmt -> fetch ())
    echo $row [0] . ", ";
echo "<br>\n";

$sql = "SELECT x FROM (
            SELECT x FROM (SELECT x FROM a UNION SELECT x FROM b) x
                INTERSECT
            SELECT x FROM c
    ) x ORDER BY x; ";
$stmt = $db->query ($sql);
while ($row = $stmt -> fetch ())
    echo $row [0] . ", ";
echo "<br>\n";

$sql = "SELECT x FROM (
            SELECT x FROM (SELECT x FROM a INTERSECT SELECT x FROM c) x
                UNION
            SELECT x FROM (SELECT x FROM b INTERSECT SELECT x FROM c) x
    ) x ORDER BY x; ";
$stmt = $db->query ($sql);
while ($row = $stmt -> fetch ())
    echo $row [0] . ", ";
echo "<br>\n";

$sql = "SELECT x FROM (
            SELECT x FROM (SELECT x FROM a UNION SELECT x FROM c) x
                INTERSECT
            SELECT x FROM b
    ) x ORDER BY x; ";
$stmt = $db->query ($sql);
while ($row = $stmt -> fetch ())
    echo $row [0] . ", ";
echo "<br>\n";

$sql = "SELECT x FROM (
            SELECT x FROM (SELECT x FROM a INTERSECT SELECT x FROM b) x
                UNION
            SELECT x FROM (SELECT x FROM b INTERSECT SELECT x FROM c) x
    ) x ORDER BY x; ";
$stmt = $db->query ($sql);
while ($row = $stmt -> fetch ())
    echo $row [0] . ", ";
echo "<br>\n";

$sql = "SELECT x FROM (
            SELECT x FROM (SELECT x FROM b UNION SELECT x FROM c) x
                INTERSECT
            SELECT x FROM a
    ) x ORDER BY x; ";
$stmt = $db->query ($sql);
while ($row = $stmt -> fetch ())
    echo $row [0] . ", ";
echo "<br>\n";

$sql = "SELECT x FROM (
            SELECT x FROM (SELECT x FROM a INTERSECT SELECT x FROM b) x
                UNION
            SELECT x FROM (SELECT x FROM c INTERSECT SELECT x FROM a) x
    ) x ORDER BY x; ";
$stmt = $db->query ($sql);
while ($row = $stmt -> fetch ())
    echo $row [0] . ", ";
echo "<br>\n";

$sql = "DROP DATABASE q20240516" . session_id () . "; ";
$db->query ($sql);

session_destroy ();
?>

Code: Alles auswählen

2, 4, 5, 7, 8, 10, 11, 12, 13, 14, 15, 16, 18, 19, 20, 21, 22, 24, 26, 28, 29, 30, 31, 34, 35, 37, 40, 41, 42, 44, 49, 50, 53, 57, <br>
2, 3, 4, 5, 10, 11, 12, 13, 14, 15, 18, 19, 21, 22, 24, 26, 28, 29, 30, 31, 37, 46, 51, 53, 57, 61, 64, 67, 71, 74, 80, 93, 96, 97, 108, 113, 115, <br>
2, 3, 4, 7, 8, 10, 16, 19, 20, 21, 26, 28, 34, 35, 37, 40, 41, 42, 44, 46, 49, 50, 51, 53, 57, 61, 64, 67, 71, 74, 80, 93, 96, 97, 108, 113, 115, <br>
4, 10, 21, 26, 28, <br>
2, 4, <br>
4, 19, 37, 53, 57, <br>
2, 4, 19, 37, 53, 57, <br>
2, 4, 19, 37, 53, 57, <br>
4, 10, 19, 21, 26, 28, 37, 53, 57, <br>
4, 10, 19, 21, 26, 28, 37, 53, 57, <br>
2, 4, 10, 21, 26, 28, <br>
2, 4, 10, 21, 26, 28, <br>
Bild

Code: Alles auswählen

 0 0 0 0 0    1
 1 0 0 0 1    1
 2 0 0 1 0    0
 3 0 0 1 1    1
 4 0 1 0 0    0
 5 0 1 0 1    0
 6 0 1 1 0    1
 7 0 1 1 1    0
 8 1 0 0 0    0
 9 1 0 0 1    1
10 1 0 1 0    0
11 1 0 1 1    0
12 1 1 0 0    0
13 1 1 0 1    1
14 1 1 1 0    1
15 1 1 1 1    0


 0 0 0 0 0    1
 1 0 0 0 1    1
 3 0 0 1 1    1
 6 0 1 1 0    1
 9 1 0 0 1    1
13 1 1 0 1    1
14 1 1 1 0    1


Gruppe 0:
 0 0 0 0 0    1
Gruppe 1:
 1 0 0 0 1    1
Gruppe 2:
 3 0 0 1 1    1
 6 0 1 1 0    1
 9 1 0 0 1    1
Gruppe 3:
13 1 1 0 1    1
14 1 1 1 0    1


0:1         0 0 0 -
1:3         0 0 - 1
1:9         - 0 0 1
6:14        - 1 1 0
9:13        1 - 0 1


0:1         0 0 0 -
1:3         0 0 - 1
9:13        1 - 0 1
1:9         - 0 0 1
6:14        - 1 1 0

            0   1   3   6   9   13  14
0:1         x   x
1:3             x   x
9:13                        x   x
1:9             x           x
6:14                    x           x


 0 0 0 0 0    1 *
 1 0 0 0 1    1 *
 2 0 0 1 0    0
 3 0 0 1 1    1 *
 4 0 1 0 0    0
 5 0 1 0 1    0
 6 0 1 1 0    1 *
 7 0 1 1 1    0
 8 1 0 0 0    0
 9 1 0 0 1    1 *
10 1 0 1 0    0
11 1 0 1 1    0
12 1 1 0 0    0
13 1 1 0 1    1 *
14 1 1 1 0    1 *
15 1 1 1 1    0

Richtig


            0   1   3   6   9   13  14      prim
0:1         x   x                           x
1:3             x   x                       x
9:13                        x   x           x
1:9             x           x
6:14                    x           x       x


            0   1   3   6   9   13  14      prim
0:1         x   x                           x
1:3             x   x                       x
9:13                        x   x           x
6:14                    x           x       x


0:1         0 0 0 -
1:3         0 0 - 1
9:13        1 - 0 1
6:14        - 1 1 0

    y <=    (not x3 and not x2 and not x1) or
            (not x3 and not x2 and x0) or
            (x3 and not x1 and x0) or
            (x2 and x1 and not x0);

    Konjunktive Normalform:

    y <=    (x3 or x2 or x1) and
            (x3 or x2 or not x0) and
            (not x3 or x1 or not x0) and
            (not x2 or not x1 or x0);

library ieee;
use ieee.std_logic_1164.all;

entity quine20240516 is
port (
    x3, x2, x1, x0: in std_logic;
    y: out std_logic
);
end;

architecture behaviour of quine20240516 is
begin
    y <=    (not x3 and not x2 and not x1) or
            (not x3 and not x2 and x0) or
            (x3 and not x1 and x0) or
            (x2 and x1 and not x0);
end;

library ieee;
use ieee.std_logic_1164.all;

entity quine20240516testbench is
port (
    y: out std_logic
);
end;

architecture behaviour of quine20240516 is
    component quine20240516
    port (
        x3, x2, x1, x0: in std_logic;
        y: out std_logic
    );
    end component;
    signal x3, x2, x1, x0: std_logic;
begin
    q: quine20240516 PORT MAP (x3=>x3, x2=>x2, x1=>x1, x0=>x0, y=>y);


Code: Alles auswählen

library ieee;
use ieee.std_logic_1164.all;

entity quine20240516 is
port (
    x3, x2, x1, x0: in std_logic;
    y: out std_logic
);
end;

architecture behaviour of quine20240516 is
begin
    y <=    (not x3 and not x2 and not x1) or
            (not x3 and not x2 and x0) or
            (x3 and not x1 and x0) or
            (x2 and x1 and not x0);
end;

library ieee;
use ieee.std_logic_1164.all;

entity quine20240516testbench is
port (
    y: out std_logic
);
end;

architecture behaviour of quine20240516testbench is
    component quine20240516
    port (
        x3, x2, x1, x0: in std_logic;
        y: out std_logic
    );
    end component;
    signal x3, x2, x1, x0: std_logic;
begin
    q: quine20240516 PORT MAP (x3=>x3, x2=>x2, x1=>x1, x0=>x0, y=>y);


    x0 <= '0' after 0 ns, '1' after 10 ns, '0' after 20 ns, '1' after 30 ns, '0' after 40 ns, '1' after 50 ns, '0' after 60 ns, '1' after 70 ns, '0' after 80 ns, '1' after 90 ns, '0' after 100 ns, '1' after 110 ns, '0' after 120 ns, '1' after 130 ns, '0' after 140 ns, '1' after 150 ns;

    x1 <= '0' after 0 ns, '0' after 10 ns, '1' after 20 ns, '1' after 30 ns, '0' after 40 ns, '0' after 50 ns, '1' after 60 ns, '1' after 70 ns, '0' after 80 ns, '0' after 90 ns, '1' after 100 ns, '1' after 110 ns, '0' after 120 ns, '0' after 130 ns, '1' after 140 ns, '1' after 150 ns;

    x2 <= '0' after 0 ns, '0' after 10 ns, '0' after 20 ns, '0' after 30 ns, '1' after 40 ns, '1' after 50 ns, '1' after 60 ns, '1' after 70 ns, '0' after 80 ns, '0' after 90 ns, '0' after 100 ns, '0' after 110 ns, '1' after 120 ns, '1' after 130 ns, '1' after 140 ns, '1' after 150 ns;

    x3 <= '0' after 0 ns, '0' after 10 ns, '0' after 20 ns, '0' after 30 ns, '0' after 40 ns, '0' after 50 ns, '0' after 60 ns, '0' after 70 ns, '1' after 80 ns, '1' after 90 ns, '1' after 100 ns, '1' after 110 ns, '1' after 120 ns, '1' after 130 ns, '1' after 140 ns, '1' after 150 ns;
end;

Code: Alles auswählen

#!/bin/bash

if [[ "$1" == "David" && "$2" == "Vajda" ]]
then
    echo "Das bin ich"
elif [[ "$1" == "David Vajda" && -z "$2" ]]
then
    echo "Das bin ich"
elif [[ "$1" == "David" && -z "$2" ]]
then
    echo "Das koennte ich sein"
elif [[ "$1" == "Vajda" && -z "$2" ]]
then
    echo "Das koennte ich sein"
elif [ -n "$2" ]
then
    echo "Das bin ich nicht"
else
    echo "Hallo Welt"
    i=0
    while [ $i -lt 10 ]
    do
        echo "Hallo zum $(($i+1))"
        i=$(($i+1))
    done
    a=(Aber hallo sage ich)
    a+=(Aber das hier auch)
    i=0
    while [ $i -lt 8 ]
    do
        echo "${a[$i]}"
        i=$(($i+1))
    done
    for s in "${a[@]}"
    do
        echo "$s"
    done
    l=$(ls)
    for s in $l
    do
        echo "$s"
    done
fi

Code: Alles auswählen

#!/bin/bash

/bin/bash bash20240516.sh "David" "Vajda"
/bin/bash bash20240516.sh "David"
/bin/bash bash20240516.sh "Vajda"
/bin/bash bash20240516.sh "David Vajda"
/bin/bash bash20240516.sh "Max Mustermann"
/bin/bash bash20240516.sh

Code: Alles auswählen

Das bin ich
Das koennte ich sein
Das koennte ich sein
Das bin ich
Hallo Welt
Hallo zum 1
Hallo zum 2
Hallo zum 3
Hallo zum 4
Hallo zum 5
Hallo zum 6
Hallo zum 7
Hallo zum 8
Hallo zum 9
Hallo zum 10
Aber
hallo
sage
ich
Aber
das
hier
auch
Aber
hallo
sage
ich
Aber
das
hier
auch
addressdecodertestbench.c
akjs
alllinks.sh
a.out
asm15
asm16
automat15
automat15.c
bash20240516all.sh
bash20240516.out
bash20240516.sh
Bilder
binary2
binary2.c
binomial20240414a.c
crypto_from_scratch.txt
david.jpg
david.odg
davina.jpg
davina.odg
deepsearch1.c
deepsearch2
deepsearch2.c
doc
Dokumente
dos-inst
Downloads
float.c
fsmprogs
FuE_Kryptowaehrungen_und_Smart_Contracts_Abschlussbericht.pdf
generategraphs10.c
generategraphs11.c
generategraphs2.c
generategraphs3.c
generategraphs4.c
generategraphs5.c
generategraphs6.c
generategraphs7.c
generategraphs8.c
generategraphs9.c
generategraphs.c
generatetestbench2
generatetestbench3
generatetestbench4
generatetestbench5
gnu-hello
ieee754aufgabe
ieee754aufgabe2.c
ieee754aufgabe.c
ieee754aufgabe.o
inst
mail
Mars
matlab
mips32singlecycle2.vhdl
mips32singlecycle.vhdl
Musik
mydaemontestd
mydata.txt
myfind.sh
mysqldata.php
Öffentlich
out2.txt
out.txt
password
password20240326.txt
quine
quine20240516.txt
quine20240516.vhdl
replace.sh
robertsedgewickgraph01.c
Schreibtisch
Screenshot_20240514_005357.png
Screenshot_20240514_005411.png
Screenshot_20240516_102155.png
Screenshot_20240516_111929.png
sd5.txt
sd6.txt
state3
svg
tagebuch.txt
test10.aux
test10.log
test10.pdf
test10.tex
test12.aux
test12.log
test12.pdf
test12.tex
test13-1.jpg
test13.aux
test13.log
test13.pdf
test13.tex
test14.aux
test14.log
test14.pdf
test14.tex
test15.tex
test16.csv
test17.txt
texput.log
Videos
VirtualBox
VMs
Vorlagen
wave.ghw
work-obj93.cf
Hallo Welt
Hallo zum 1
Hallo zum 2
Hallo zum 3
Hallo zum 4
Hallo zum 5
Hallo zum 6
Hallo zum 7
Hallo zum 8
Hallo zum 9
Hallo zum 10
Aber
hallo
sage
ich
Aber
das
hier
auch
Aber
hallo
sage
ich
Aber
das
hier
auch
addressdecodertestbench.c
akjs
alllinks.sh
a.out
asm15
asm16
automat15
automat15.c
bash20240516all.sh
bash20240516.out
bash20240516.sh
Bilder
binary2
binary2.c
binomial20240414a.c
crypto_from_scratch.txt
david.jpg
david.odg
davina.jpg
davina.odg
deepsearch1.c
deepsearch2
deepsearch2.c
doc
Dokumente
dos-inst
Downloads
float.c
fsmprogs
FuE_Kryptowaehrungen_und_Smart_Contracts_Abschlussbericht.pdf
generategraphs10.c
generategraphs11.c
generategraphs2.c
generategraphs3.c
generategraphs4.c
generategraphs5.c
generategraphs6.c
generategraphs7.c
generategraphs8.c
generategraphs9.c
generategraphs.c
generatetestbench2
generatetestbench3
generatetestbench4
generatetestbench5
gnu-hello
ieee754aufgabe
ieee754aufgabe2.c
ieee754aufgabe.c
ieee754aufgabe.o
inst
mail
Mars
matlab
mips32singlecycle2.vhdl
mips32singlecycle.vhdl
Musik
mydaemontestd
mydata.txt
myfind.sh
mysqldata.php
Öffentlich
out2.txt
out.txt
password
password20240326.txt
quine
quine20240516.txt
quine20240516.vhdl
replace.sh
robertsedgewickgraph01.c
Schreibtisch
Screenshot_20240514_005357.png
Screenshot_20240514_005411.png
Screenshot_20240516_102155.png
Screenshot_20240516_111929.png
sd5.txt
sd6.txt
state3
svg
tagebuch.txt
test10.aux
test10.log
test10.pdf
test10.tex
test12.aux
test12.log
test12.pdf
test12.tex
test13-1.jpg
test13.aux
test13.log
test13.pdf
test13.tex
test14.aux
test14.log
test14.pdf
test14.tex
test15.tex
test16.csv
test17.txt
texput.log
Videos
VirtualBox
VMs
Vorlagen
wave.ghw
work-obj93.cf

Code: Alles auswählen

Zustand		Folge-Zustand fuer	Ausgang
			x=0	x=1				
1			5	4				1
2			7	7				0
3			1	4				1
4			1	5				1
5			4	1				1
6			1	4				0
7			4	8				1
8			8	6				0


Zustand		Folge-Zustand fuer	Ausgang
			x=0	x=1
1			5	4				1
3			1	4				1
4			1	5				1
5			4	1				1
7			4	8				1

Zustand		Folge-Zustand fuer	Ausgang
			x=0	x=1
2			7	7				0
6			1	4				0
8			8	6				0



Zustand		Folge-Zustand fuer	Ausgang
			x=0	x=1
1			5	4				1
3			1	4				1
4			1	5				1
5			4	1				1
7			4	8				1

(1,3)		(5,1)			(4,4)
(1,4)		(5,1)			(4,5)
(1,5)		(5,4)			(4,1)
(1,7)		(5,4)			(4,8)
(3,4)		(1,1)			(4,5)
(3,5)		(1,4)			(4,1)
(3,7)		(1,4)			(4,8)
(4,5)		(1,4)			(5,1)
(4,7)		(1,4)			(5,8)
(5,7)		(4,4)			(1,8)

Zustand		Folge-Zustand fuer	Ausgang
			x=0	x=1
2			7	7				0
6			1	4				0
8			8	6				0

(2,6)			(7,1)		(7,4)
(2,8)			(7,8)		(7,6)
(6,8)			(1,8)		(4,6)


(1,3)		(5,1)			(4,4)
(1,4)		(5,1)			(4,5)
(1,5)		(5,4)			(4,1)
(1,7)		(5,4)			(4,8)
(2,6)		(7,1)			(7,4)
(2,8)		(7,8)			(7,6)
(3,4)		(1,1)			(4,5)
(3,5)		(1,4)			(4,1)
(3,7)		(1,4)			(4,8)
(4,5)		(1,4)			(5,1)
(4,7)		(1,4)			(5,8)
(5,7)		(4,4)			(1,8)
(6,8)		(1,8)			(4,6)



(1,3)		(1,5)			(4,4)
(1,4)		(1,5)			(4,5)
(1,5)		(4,5)			(1,4)
(1,7)		(4,5)			(4,8)
(2,6)		(1,7)			(4,7)
(2,8)		(7,8)			(6,7)
(3,4)		(1,1)			(4,5)
(3,5)		(1,4)			(1,4)
(3,7)		(1,4)			(4,8)
(4,5)		(1,4)			(1,5)
(4,7)		(1,4)			(5,8)
(5,7)		(4,4)			(1,8)
(6,8)		(1,8)			(4,6)



(1,3)		(1,5)
(1,4)		(1,5)			(4,5)
(1,5)		(4,5)			(1,4)
(1,7)		(4,5)			(4,8)
(2,6)		(1,7)			(4,7)
(2,8)		(7,8)			(6,7)
(3,4)		(1,1)			(4,5)
(3,5)		(1,4)			(1,4)
(3,7)		(1,4)			(4,8)
(4,5)		(1,4)			(1,5)
(4,7)		(1,4)			(5,8)
(5,7)		(1,8)
(6,8)		(1,8)			(4,6)



(1,3)		(1,5)
(1,4)		(1,5)			(4,5)
(1,5)		(4,5)			(1,4)
--(1,7)		(4,5)			--(4,8)
--(2,6)		--(1,7)			(4,7)
--(2,8)		--(7,8)			(6,7)
(3,4)		(4,5)
(3,5)		(1,4)			(1,4)
--(3,7)		(1,4)			--(4,8)
(4,5)		(1,4)			(1,5)
--(4,7)		(1,4)			--(5,8)
--(5,7)		--(1,8)
--(6,8)		--(1,8)			(4,6)


(1,3)		(1,5)
(1,4)		(1,5)			(4,5)
(1,5)		(4,5)			(1,4)
(3,4)		(4,5)
(3,5)		(1,4)			(1,4)
(4,5)		(1,4)			(1,5)
Bild

Bild

https://drive.google.com/file/d/1o1Anxp ... drive_link

https://drive.google.com/file/d/1_PON2A ... drive_link


https://drive.google.com/file/d/1q4h_6X ... drive_link,
https://drive.google.com/file/d/14cjo7M ... drive_link,
https://drive.google.com/file/d/17Z46Qx ... drive_link, https://drive.google.com/file/d/1GyZGHe ... drive_link, https://drive.google.com/file/d/1TSztJz ... drive_link,
https://drive.google.com/file/d/1sGkQTU ... drive_link, https://drive.google.com/file/d/1JVpb78 ... drive_link, https://drive.google.com/file/d/1P8XNsX ... drive_link, https://drive.google.com/file/d/1TTUZnY ... drive_link


Bild
Bild
Bild

Code: Alles auswählen

Zustand,Eingabe,Ausgabe,Folgezustand
1,0,1,4
1,1,1,2
2,0,0,1
2,1,1,1
3,0,1,2
3,1,1,4
4,0,0,3
4,1,1,3

z1+ := z2
z2+ := z1 and x or z3 not x
z3+ := z4
z4+ := z1 and not x or z3 and x

y := z1 or z2 and x or z3 or z4 and x

Code: Alles auswählen

1.) Rechne die Zahl in binaer Darstellung  in eine Dezimale Darstellung um
0100001011111100b 17148d
2.) Rechne die Zahl in dezimal darstellung in eine Binaerdarstellung um
24231 0101111010100111
3.) Addiere die drei Zahlen schriftlich
            45336
+           41126
+           26640
-----------------
           113102
4.) Subtrahiere die letzten drei Zahlen schriftlich von der ersten schriftlich
            59205
-            8694
-            9626
-            5920
-----------------
            34965
5.) Rechne die Zahl ins zweier komplement um, mit 8 Bit - und subtrahiere diese zahl von der ersten und rechne das Ergebnis nach dezimal
-68 -28 = -96
10111100 11100100 = 10100000
6.) Multipliziere die zwei Zahlen schriftlich
6177*1001 = 6183177
7.) Dividiere die zwei Zahlen schriftlich
36478/21711 = 1
8.) Errechne x Logarithmisch mit dem Taschenrechner
61242^x = 277743091
Rechne die Zahl in IEEE-754 um 832.521240

Bild

Bild
Bild
Bild
Bild
Antworten