- 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 ?

16th Nov 2021, 7:15 PM
Hana Saadeh
8 Respuestas
+ 4
Review the previous lessons. 5.1 explains getting user input.
16th Nov 2021, 7:25 PM
Lisa
Lisa - avatar
+ 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...
16th Nov 2021, 7:20 PM
Jayakrishna 🇮🇳
+ 2
Explanation: 12 days are 12*24 = 288 hours, which are 288*60 = 17280 minutes, which are 17280*60 = 1036800 seconds.
16th Nov 2021, 7:22 PM
Hana Saadeh
+ 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..
16th Nov 2021, 7:30 PM
Jayakrishna 🇮🇳
+ 1
Please tag the relevant programming language. Get days as input. 1 min = 60 s 1 h = 60 min 1 d = 24 h
16th Nov 2021, 7:18 PM
Lisa
Lisa - avatar
18th Nov 2021, 4:25 PM
정지균
정지균 - avatar
- 2
I do understand how iy come But i cant write it as aprogramme on the time converete ,
16th Nov 2021, 7:23 PM
Hana Saadeh
- 2
Its Java language
16th Nov 2021, 7:23 PM
Hana Saadeh