+ 1

How do I solve this question?

A startup launched a smartwatch with a subpar timer. Their developers thought users would like seeing their timers in seconds. Instead, users like seeing hours, minutes, and seconds left. The company wants to hire you to fix this bad user experience. Use the timeInSeconds variable to set hours, minutes, and seconds to their correct values. For example, when timeInSeconds is 60, your code should set hours to 0, minutes to 1, and seconds to 0. Just like in every great timer app! and the default uneditable code is var timeInSeconds = 12731 var hours = 0 var minutes = 0 var seconds = 0

24th Mar 2020, 9:22 AM
GARYTHEGAMER
GARYTHEGAMER - avatar
6 Respostas
0
I tried it Lothar but it still does not work
24th Mar 2020, 9:40 AM
GARYTHEGAMER
GARYTHEGAMER - avatar
+ 3
Before we can help you, you should try this task yourself by coding and link your code here.
24th Mar 2020, 9:37 AM
Lothar
Lothar - avatar
+ 3
What language you wanted to use? You should also tag this in your post.
24th Mar 2020, 10:41 AM
Lothar
Lothar - avatar
0
Lothar I think he is talking about JavaScript.
24th Mar 2020, 10:46 AM
Ishmam
Ishmam - avatar
0
Javascript or Swift
24th Mar 2020, 10:49 AM
GARYTHEGAMER
GARYTHEGAMER - avatar
0
func secondsToHoursMinutesSeconds (seconds : Int) -> (Int, Int, Int) { return (seconds / 3600, (seconds % 3600) / 60, (seconds % 3600) % 60) } Use this function in swift
24th Mar 2020, 7:14 PM
Ankit Saxena
Ankit Saxena - avatar