Professional Documents
Culture Documents
Assignment 1 (2021)
Assignment 1 (2021)
The Given Code is currently dealing with a 24 Hours Clock. You have Change the Clock from 24-
hours to 12-hours Clock. In a 12-hour clock, the hours after midnight and after noon shall be shown
as 12:30 and not as 00:30. Thus, the minute display shows values from 0 to 59, while the hour
display shows values from1 to 12.
You are supposed to implement two version of the 12-hour clock as per requirement given in bold.
And after that you have to make a comparison about the implementation, which version is easier
and why?
Secondly, you can simply leave the clock to work internally as a 24 hours clock but change
the display string of clock display to show 04:23PM when the internal value is 16:23.
Instruction:
This is individual assignment and you are supposed to work individually without help of any of
your peer. Any Part of your code is appeared to be copied from anywhere or any part of your code
if appeared somewhere else, no mark will be awarded,