Answered step by step
Verified Expert Solution
Question
1 Approved Answer
The Alarm Clock Problem Definition Design an alarm clock system. The alarm clock works like the one at your bed side. To begin with,
The Alarm Clock Problem Definition Design an alarm clock system. The alarm clock works like the one at your bed side. To begin with, the time is 00:00, the bell is off, and the alarm is disabled. Bell ringing condition: bell rings only if the alarm is enabled and the current time is the same as the alarm time The alarm can be enabled, disabled, and set at any time. You can't disable un-enabled alarm. The bell stops ringing when disable the alarm while it's ringing Like the alarm the clock can be reset instantaneously Your solution should meet the following: 1. PROBLEM DECOMPOSITION (3 Marks) i. Break down the problem into a tree structure of tasks. 2. FINDING PATTERNS AND FORM GENERALISATIONS (5 Marks) i. Find all the entities, rules, action, and properties needed. 3. ABSTRACTIONS AND MODELS (7 Marks) Find all the concepts and draw all the diagrams needed. (your solution should contain static, states and workflow diagrams) The Alarm Clock Problem Definition Design an alarm clock system. The alarm clock works like the one at your bed side. To begin with, the time is 00:00, the bell is off, and the alarm is disabled. Bell ringing condition: bell rings only if the alarm is enabled and the current time is the same as the alarm time The alarm can be enabled, disabled, and set at any time. You can't disable un-enabled alarm. The bell stops ringing when disable the alarm while it's ringing Like the alarm the clock can be reset instantaneously Your solution should meet the following: 1. PROBLEM DECOMPOSITION (3 Marks) i. Break down the problem into a tree structure of tasks. 2. FINDING PATTERNS AND FORM GENERALISATIONS (5 Marks) i. Find all the entities, rules, action, and properties needed. 3. ABSTRACTIONS AND MODELS (7 Marks) Find all the concepts and draw all the diagrams needed. (your solution should contain static, states and workflow diagrams)
Step by Step Solution
★★★★★
3.35 Rating (155 Votes )
There are 3 Steps involved in it
Step: 1
1 PROBLEM DECOMPOSITION Set initial state Time 0000 Bell OFF Alarm Disabled User Actions Set Alarm T...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