mirror of
https://github.com/appinfosapienza/so-un-bot.git
synced 2025-05-06 22:39:38 +02:00
Add 21-50 question of 01/22
This commit is contained in:
parent
604c2269b6
commit
5c561b5538
121 changed files with 697 additions and 0 deletions
15
Ingegneria del Software/42/wrong.txt
Normal file
15
Ingegneria del Software/42/wrong.txt
Normal file
|
@ -0,0 +1,15 @@
|
|||
<pre>
|
||||
class Monitor
|
||||
InputReal x, y, z; // plant output
|
||||
OutputBoolean wy;
|
||||
Boolean wz;
|
||||
initial equation
|
||||
wy = false;
|
||||
equation
|
||||
wz = (time > 50) and (x >= 0.6*y) and (x + y <= 0.3*z);
|
||||
algorithm
|
||||
when edge(wz) then
|
||||
wy := true;
|
||||
end when;
|
||||
end Monitor;
|
||||
</pre>
|
Loading…
Add table
Add a link
Reference in a new issue