O'Reilly logo

C# Primer Plus by Klaus Michelsen

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Programming Exercises

Change the program BliposClock.cs in Listing 6.8 to exhibit the functionality presented in the next four points:

1:Enable the clock to be adjusted by plus/minus 100 seconds by giving the commands H and M.
2:A year on Blipos has 256 days. The first day of the year has number 0. The civilization is very old on Blipos; their current year is 4,294,967,296. Allow the Blipos clock to show the date on Blipos as ddd/y,yyy,yyy,yyy. Which types would you choose for ddd and yyyyyyyyyy?
3:Allow the user to set and adjust the day and year of the Blipos clock so that it becomes possible to move forward and backward in time by one day and one year.
4:The emperor's birthday is celebrated on the 100th day of each year. Enable the Blipos clock ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required