Afrikaans
Akan
Albanian
Amharic
Arabic
Armenian
Azerbaijani
Basque
Belarusian
Bemba
Bengali
Bihari
Bosnian
Breton
Bulgarian
Cambodian
Catalan
Cebuano
Cherokee
Chichewa
Chinese (Simplified)
Chinese (Traditional)
Corsican
Croatian
Czech
Danish
Dutch
English
Esperanto
Estonian
Ewe
Faroese
Filipino
Finnish
French
Frisian
Ga
Galician
Georgian
German
Greek
Guarani
Gujarati
Haitian Creole
Hausa
Hawaiian
Hebrew
Hindi
Hmong
Icelandic
Igbo
Interlingua
Irish
Italian
Japanese
Javanese
Kannada
Kazakh
Kinyarwanda
Kirundi
Kongo
Korean
Krio (Sierra Leone)
Kurdish
Kurdish (Soranรฎ)
Kyrgyz
Laothian
Latin
Latvian
Lingala
Lithuanian
Lozi
Luganda
Luo
Luxembourgish
Macedonian
Malagasy
Malay
Malayalam
Maltese
Maori
Marathi
Mauritian Creole
Moldavian
Mongolian
Myanmar (Burmese)
Montenegrin
Nepali
Nigerian Pidgin
Northern Sotho
Norwegian
Norwegian (Nynorsk)
Occitan
Oriya
Oromo
Pashto
Persian
Polish
Portuguese (Brazil)
Portuguese (Portugal)
Punjabi
Quechua
Romanian
Romansh
Runyakitara
Russian
Samoan
Scots Gaelic
Serbian
Serbo-Croatian
Sesotho
Setswana
Seychellois Creole
Shona
Sindhi
Sinhalese
Slovak
Slovenian
Somali
Spanish
Spanish (Latin American)
Sundanese
Swahili
Swedish
Tajik
Tamil
Tatar
Telugu
Thai
Tigrinya
Tonga
Tshiluba
Tumbuka
Turkish
Turkmen
Twi
Uighur
Ukrainian
Urdu
Uzbek
Vietnamese
Welsh
Wolof
Xhosa
Yiddish
Yoruba
Zulu
What is going on, guys?
My name is Vlad, this is Alphatech, and that's another exercise in our programming course.
And in this video, what we have to do is to write a program that receives an integer representing seconds.
OK, so just the program using some probably input command or input function that the value that we
are going to receive is simply some seconds.
And right after we received this value, the program should convert the given seconds into total hours,
total minutes and remaining seconds.
So if we want to take a look at some nice example, let's say we have four thousand seconds as an input,
then we want to break it down to how many hours, how many minutes and how many seconds we have.
Still, we still have in this kind of all seconds represented.
So we know that we have one full hour.
So let me use here the laser pointer, one full hour, which is a total of three thousand six hundred
seconds.
We also know that the remaining minutes will be four thousand minus three thousand, then six hundred,
which is a total of four hundredths seconds.
And if we want to calculate the minutes, we will simply divide the seconds that are left by 60 and
we will get probably six minutes total six minutes.
Right, because we just take the full part of our the full part of minutes.
And also, if we want to know what are the remaining seconds, we simply take 400, which we had here
and are divided using the remainder operator and find that we have 40 seconds.
So if we have these various inputs for a thousand seconds and we want to represent it in terms of hours,
minutes and seconds.
So we have these are one hour, six seconds and forty six minutes and 40 seconds, which is the total
representation of these four thousand seconds.
So simply getting a seconds as an input or converting it into hours, four hours, four minutes and
the remaining seconds.
OK, just a couple of mathematical operations that we are going to do in order to complete it.
So take a couple of minutes, write this programming your programming language and using your I.D. and
I will see you in the Solutions video.
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.