- 4
I need a program to convert days to seconds. The given code takes the amount of days as input. Complete the code to convert
How can i resolve it ?
8 ответов
+ 4
Review the previous lessons. 5.1 explains getting user input.
+ 2
Just Read the description again..
Try it and post your attempt if it unsolved..
edit:
You know
1 day = 24 hours
1 hours = 60 mins
1 min = 60 seconds
!!!?
Tag the language you are trying...
+ 2
Explanation: 12 days are 12*24 = 288 hours, which are 288*60 = 17280 minutes, which are 17280*60 = 1036800 seconds.
+ 2
2 steps:
1) take user input
2) convert and display result as needed in seconds as per calculations you told..
Where are you finding difficulty there?
Follow steps and try ..
If unsolved then post your attempt..
Hope it helps..
+ 1
Please tag the relevant programming language.
Get days as input.
1 min = 60 s
1 h = 60 min
1 d = 24 h
- 2
I do understand how iy come
But i cant write it as aprogramme on the time converete ,
- 2
Its Java language