Computer Science, asked by prasadshreya3851, 1 month ago

write a program in Java to accept time in hours and convert it into seconds display hours in seconds both also write the variable list​

Answers

Answered by bharathbangaram321
0

Answer:

The output should look like this (it is a good idea to echo back the input): You entered 500,000 seconds, which is 5 days, 18 hours, 53 minutes and 20 seconds. (5 days 18:53:20 hours)

So can you guys tell me how I should do it, what is the easiest way to understand and do it, please help guys, I'm really stuck, also he said "no hard coding" which I'm not exactly sure what it is but I think he wants us to assign them constants

Similar questions