3.6. (Part 1) Time Calculator - Java

Опубликовано: 04 Июль 2016
на канале: Kakra Detome
10,938
61

Hello Everyone, hope you're all doing well. I remade this program in a different way because although this program works, parts of it is unnecessary. Also, it will serve as another method. I've explained why parts of this program is unnecessary although it works, in the new video posted below :) Take care and please let me know if you have questions :)

Other Java Programs - Method 2 - 3.6. (Part 1) Time Calculator - Java,    • (Method 2) - 3.6. (Part 1) Time Calcu...  
Other Java Programs - Method 2 - 3.6. (Part 2) Time Calculator - Java ,    • (Method 2) - 3.6. (Part 2) Time Calcu...  
-----------------------------------------------------------------------------------------------------
Starting out with Java: From control structures through objects
Chapter 3
Programming Challenges
--------------------------------------------------------------------------------------------------------------------------------------------------------------------
6. Time Calculator

Write a program that asks the user to enter a number of seconds.

• There are 60 seconds in a minute. If the number of seconds entered by the user is greater than or equal to 60, the program should display the number of minutes in that many seconds.

• There are 3,600 seconds in an hour. If the number of seconds entered by the user is greater than or equal to 3,600, the program should display the number of hours in that many seconds.

• There are 86,400 seconds in a day. If the number of seconds entered by the user is greater than or equal to 86,400, the program should display the number of days in that many seconds.

Gaddis, Tony (2015-05-29). Starting Out with Java: From Control Structures through Objects (Page 185 & 186). Pearson Education.
Kindle Edition.
--------------------------------------------------------------------------------------------------------------------------------------------------------------------
Bitcoin Address - 1AbnaHDLG3xqmycNHKDKh1gPNst29Rkp6S

Thanks :)
--------------------------------------------------------------------------------------------------------------------------------------------------------------------