top of page
Writer's pictureFahad H

(Method 2) – 3.6. (Part 1) Time Calculator – Java


—————————————————————————————————– Other / Requested Java Programs ——————————————————————————————————————————————————————– Chapter 3 Programming challenges

6. Time Calculator

Write a program that asks the consumer to enter various seconds.

• There are 60 seconds in a minute. If the variety of seconds entered by the consumer is bigger than or equal to 60, this system ought to show the variety of minutes in that many seconds.

• There are 3,600 seconds in an hour. If the variety of seconds entered by the consumer is bigger than or equal to three,600, this system ought to show the variety of hours in that many seconds.

• There are 86,400 seconds in a day. If the variety of seconds entered by the consumer is bigger than or equal to 86,400, this system ought to show the variety of days in that many seconds.

Gaddis, Tony (2015-05-29). Starting Out with Java: From Control Structures via Objects (Page 185 & 186). Pearson Education. Kindle Edition. ——————————————————————————————————————————————————————– Bitcoin Address – 12uPbtoTBgxKG3ppxC2NSJYmmr5qipsbds

Thanks 🙂 ——————————————————————————————————————————————————————–

3 views0 comments

Comments


bottom of page