CSC 174 - Computer Organization and Assembly Language

Dr. R. M. Siegfried

Assignment #9 - Writing the time

Due Wednesday, April 13, 2016

Using the library procedures that we have learned, write a program that prints the time of day in terms of hours, minutes and second since Midnight24-hour format.

Your output should be in the form:
It is 1 hour(s), 3 minute(s) and 5 second(s) since Midnight.

You will need to use GetMSeconds to get the milliseconds since Midnight and then use division to get the hours, minutes and seconds and use WriteDec to print your results.

For extra credit, have the program change the foreground and background color.

[Back to the Assignment Index]