Click here to Skip to main content
15,891,684 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi,

Can anyone get me the solution for my question. How can it be implemented?

Thanks in advance..
Posted
Comments
Sergey Alexandrovich Kryukov 22-Aug-14 1:24am    
Homework?
—SA
Member 10944116 22-Aug-14 11:56am    
yes..
Member 10944116 22-Aug-14 13:39pm    
sorry... i was not able to find out the answer... Is the answer 1?

1 solution

Almost 100% certainly, you need to understand this:
http://en.wikipedia.org/wiki/Finite-state_machine[^],
http://en.wikipedia.org/wiki/State_variable[^].

As this question (not really clear formulated) is related to the very basics, you need to find out the answer by yourself, through understanding, not through getting an answer. This way, you got a chance to learn at least something. Is it a school assignment? Think about it: you are given a time frame and a chance to learn. Use it well.

Good luck.
—SA
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900