Question: 1. Ask user to enter time in seconds. Then print the time given in seconds into hours::minutes::seconds. (Hint: You need scanner to get the

1. Ask user to enter time in seconds. Then print the time given in seconds into hours::minutes::seconds. (Hint: You need scanner to get the input, and use mathematical operations such as remainder, addition, multiplication, division, subtraction, etc. to convert time given in seconds into h::m::s) Sample run: Welcome2 [Java Application] /Library/Java/JavaVirtualMachin Enter the time in seconds: 75 75 seconds equals to hours 1 minutes 15 seconds Welcome2 [Java Application]/Library/Java/JavaVirtual Machir Enter the time in seconds: 7261 7261 seconds equals to 2 hours 1 minutes 1 seconds
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
