Computer Science, asked by vani759, 6 months ago

The pseudocode shown in figure 1 functionally describes the chronometer introduced in lesson 1.1. The update
procedure updates the values of h, m, s and t whenever a clock pulse arrives (ref_positive_edge signal).
Does the pseudocode shown in figure 2 correctly implement the update procedure?
Figure
1
2
3
5
6
loop
if reset-ON then h = 0; m <= 0;S <- ; t <= 0;
else if start-ON then
while stop=OFF loop
if ref positive edge-TRUE then updatech,m,,t);
end if
end loop
end if;
and loop
Figure 2. update procedure
1
2
if t - 9 then t <= 0; add_one_second <= 1;
else t <- t+1; add_one_second <- ;
and if;
s-S-add_one_second;
if S-60 then se; add_one_minute <= 1;
else add one minute <- ;
3
9
10
- add one minute,
if - 60 then <- ; add one hour <= 1;
else add one hour (@;
12
12
14
hadd ane_four
IF - 24 then h 0;
End If;​

Answers

Answered by mani567849
1

Answer:

I am don't knowing this answers......

Similar questions