CT070!3!3 DPAT Assignment Question 1701
CT070!3!3 DPAT Assignment Question 1701
Weightage
The coursework is 50% of the assessment for the module.
Learning Outcomes:
Overview
The system to be designed and development concerns the management of electricity
meters in the student accommodation at the new Asia Pacific University campus. The
proposed system will monitor the consumption of electricity within and across all
apartments, allowing management to correctly bill each individual tenant but also enable
the building supervisor to shut down and resume each individual apartments electricity
meter when necessary. The electrical set up of the building is such that each apartment
has its own meter (assume there are 10 apartments), whilst a central main meter situated
next to the building supervisors office provides overall control of all individual meters.
Individual Meters
Each apartment has an electricity meter which monitors and records electricity
consumption by the apartment occupant. The basic rent charged by the University
covers a monthly electricity usage level of 200 kWh, and any additional usage is charged
by at a rate of 50 Sen per kWh used. At the end of each month the total extra is
calculated and the student is billed the amount due. To protect students against the risk
of incurring substantial bills a maximum monthly electricity consumption limit of 1000
kWh has been set by management. Once this limit is reached the meter should
automatically be disconnected.
Students also have the option of opting for a prepay meter system. In such cases the
student is required to top-up their account and the cost of excess consumption is
deducted from their credit/balance. The meter should therefore automatically disconnect
once the credit has been used up and restart within an hour once the student tops up their
account. All meters are the same in terms of hardware. This means that any meter can
be switched from a pre-pay to a post-pay and back again. This is done by the supervisor
through the main control meter. At any one time students should be able to determine
how electricity has been consumed. Tenants with a pre-pay meter should be also able to
see their remaining credit/balance, whilst billed/post-pay tenants should be able to see
costs incurred thus far (i.e. 0 if within the 200 kWh or the charges for the excess)
(post-pay to prepay and vice versa), as well as shut down and restart individual meters.
The main meter also allows for the resetting of individual meters, which is done when a
new tenant moves into an apartment.
Assignment Requirements
a. Using the above scenario outline write a working version of the Accommodation
Meter System
b. Your project should allow the user (Supervisor) to create up to 10 individual
meters as and when needed.
c. Implement the user interface any way you like, either textual or graphical
(although graphical is preferred).
d. Your project must incorporate a minimum of 4 design patterns
e. You much implement at least 1 Creational, Structural, and Behavioural pattern
respectively
f. Objectively and critically evaluate your solution and choice of patterns, as well
as the suitability of each design pattern for implementing object oriented
solutions.
Assignment Deliverables:
MARKING CRITERIA