Question: Write a JAVA code that would initialize a variable containing an age of a person, then calculate and print the age of a person's age

 Write a JAVA code that would initialize a variable containing an

Write a JAVA code that would initialize a variable containing an age of a person, then calculate and print the age of a person's age in terms of: a) months; b) days; c) hours; and d) seconds. Note: Use current date as your reference. You may use manual counting for days since there are months with 28, 30 and 31 days. TEST RUN; Input: 1 year old Birthday: February 21, 2020 OUTPUT; a. Months= 12 months b. days= 365 days c. hours= 8760 hours d. seconds= 31,536,000

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!