Answered step by step
Verified Expert Solution
Question
1 Approved Answer
A system has the following requirements. An automated pill box is designed to remind a patient to take medication at the right times. The medication
A system has the following requirements. An automated pill box is designed to remind a patient to take medication at the right times. The medication should be taken within a time window, such as between 9 and 10am; there may be several such periods every day. The system waits for one of the periods to start. The patient touches a fingerprint sensor to open the box, provided of course that it is the patient's fingerprint and the correct time. Closing the box returns the system to the waiting mode. If the fingerprint does not match the patient's, an audible signal is produced until the system is reset. Otherwise if the patient is too early (i.e. the next time window has not yet started) the system plays a message "please wait" for 20s. On the other hand, if the time windows ends without the patient opening the box, the system plays a message "medicine due" until the box is opened. (i) Draw a state transition diagram modelling these requirements. Ensure that the transitions are fully labelled. [6 marks (ii) Describe any ambiguities or clarifications in the requirements, explaining how the relate to your diagram. [2 marks
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started