Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started