[SOLVED] ECE325 Assignment1 Using Standard Libraries

24.99 $

Programming resource
Digital learning resource
Category:
Practical programming resource
Suitable for guided study and reference
Tutor guidance available when needed

Description

5/5 - (1 vote)

 

Write a piece of Java code, which tells you how old you are — sounds simple. In other words, you fill the days method (You can use Eclipse to do it if you like), and it outputs:

Birthday: January 1 2000; today: June 15 2000 — You are 166 days old.
Birthday: January 1 3000; today: June 15 2000 — Wrong birthday!

Clearly, the problem gets more complex as the years progress due to leap years.

To write this program you must use Java’s calendar classes. Good grief, just look at that documentation!!

(ummmm… are there other classes that I need to use??? Good question to ponder)

Remember programming is actually more about reading than writing, and class Calendar (do I need to know what a Gregorian calendar is?) is certainly an eye-full.

 

Resource details

Understand the Task Before You Use the Resource

Review the requirements, identify the programming concepts involved, study the implementation and test your understanding with your own examples and modifications.