mirror of
https://github.com/appinfosapienza/so-un-bot.git
synced 2025-05-06 19:39:37 +02:00
Add 06/21 by Matteo
This commit is contained in:
parent
970467fe89
commit
1be2085d94
169 changed files with 962 additions and 0 deletions
BIN
Ingegneria del Software/0621_6/1.png
Normal file
BIN
Ingegneria del Software/0621_6/1.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 10 KiB |
16
Ingegneria del Software/0621_6/correct.txt
Normal file
16
Ingegneria del Software/0621_6/correct.txt
Normal file
|
@ -0,0 +1,16 @@
|
|||
function next
|
||||
input Integer x;
|
||||
output Integer y;
|
||||
algorithm
|
||||
y := 1 - x;
|
||||
end next;
|
||||
|
||||
class System
|
||||
Integer x;
|
||||
initial equation
|
||||
x = 0;
|
||||
equation
|
||||
when sample(0, 1) then
|
||||
x = next(pre(x));
|
||||
end when;
|
||||
end System;
|
3
Ingegneria del Software/0621_6/quest.txt
Normal file
3
Ingegneria del Software/0621_6/quest.txt
Normal file
|
@ -0,0 +1,3 @@
|
|||
img=https://i.imgur.com/F6JCFSU.png
|
||||
Si consideri l'automa segunete:
|
||||
Quale dei seguenti modelli Modelica fornisce un modello ragionevole per l'automa di cui sopra.
|
16
Ingegneria del Software/0621_6/wrong0.txt
Normal file
16
Ingegneria del Software/0621_6/wrong0.txt
Normal file
|
@ -0,0 +1,16 @@
|
|||
function next
|
||||
input Integer x;
|
||||
output Integer y;
|
||||
algorithm
|
||||
y := x;
|
||||
end next;
|
||||
|
||||
class System
|
||||
Integer x;
|
||||
initial equation
|
||||
x = 0;
|
||||
equation
|
||||
when sample(0, 1) then
|
||||
x = next(pre(x));
|
||||
end when;
|
||||
end System;
|
16
Ingegneria del Software/0621_6/wrong1.txt
Normal file
16
Ingegneria del Software/0621_6/wrong1.txt
Normal file
|
@ -0,0 +1,16 @@
|
|||
function next
|
||||
input Integer x;
|
||||
output Integer y;
|
||||
algorithm
|
||||
y := 1 + x;
|
||||
end next;
|
||||
|
||||
class System
|
||||
Integer x;
|
||||
initial equation
|
||||
x = 0;
|
||||
equation
|
||||
when sample(0, 1) then
|
||||
x = next(pre(x));
|
||||
end when;
|
||||
end System;
|
Loading…
Add table
Add a link
Reference in a new issue