subject

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.

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 ​

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 09:00
Howard is designing a chair swing ride. the swing ropes are 5 meters long, and in full swing they tilt in an angle of 29° outside chairs to be 2.75 m above the ground in full swing.
Answers: 1
question
Computers and Technology, 22.06.2019 10:00
What is a society that has moved to the internet rather than relying on physical media called
Answers: 2
question
Computers and Technology, 23.06.2019 04:20
4. a1. vince owns a television repair shop that is insured undera commercial package policy. the policy includes thebuilding and personal property coverage form and thecauses-of-loss broad form. the declarations page indicatesthat coverage applies to both the building and the namedinsured's business property. explain whether or not thefollowing losses would be covered under his policy.a. a fire occurs on the premises, and the building isbadly damaged.b. a burglar steals some money and securities from anunlocked safe.c. a business computer is damaged by vandals whobreak into the shop after business hours.d. a tornado touches down near the store. several tel-evision sets of customers in the shop for repair aredamaged in the storm.til
Answers: 2
question
Computers and Technology, 23.06.2019 05:30
Sally is editing her science report about living things. she needs to copy a paragraph from her original report. order the steps sally needs to do to copy the text to her new document.
Answers: 1
You know the right answer?
Write a JAVA code that would initialize a variable containing an age of a person, then calculate an...
Questions
question
Mathematics, 27.05.2021 20:00
question
Biology, 27.05.2021 20:00
question
Arts, 27.05.2021 20:00
Questions on the website: 13722361