Computational Thinking and Problem Solving (SE1101) – Problem Set
Student’s Name: ………………………………………….……… Student’s ID: ……………………… Section: ……
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)