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 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
Get step-by-step solutions from verified subject matter experts
