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
Indonesian
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
Welcome, welcome, welcome, welcome, welcome to another exercise in our programming, programming,
programming.
Who this is another exercise in our programming course.
And in this exercise, what you are requested to do is to write a program that receives a day, a month
and the year, OK, simply receive some date.
And the program should find and print the next day on the calendar.
And I think that the task itself is not very complicated, at least not seems to be complicated when
you can simply get like day, month and year and like do what will be the next day, then day plus plus.
And that's it.
Although this will work for most of the cases.
But there are a couple of cases, a couple of cases where, you know, like the day may be the last
day in the month and then you have to like to increment also the month and also the month may be like
December and it should increment the year and finally the year, maybe also leap and leap year.
Right.
We talked about it in one of our previous exercises and we showed a full solution of what is a leap
year.
So, yeah, so that's something that we need to take into consideration and also to take into account
what we should do if we have this option and this option and that option and how we should know if that's
a leap year and we have 29 days or 28 days or whatsoever.
So that's what you are requested to do.
This exercise is kind of more difficult than it contains a lot of like, you know, small details that
you need to pay attention to.
But I believe in you.
I think you will be all right with that.
With that.
So take your time.
Think about the solution is not going to be easy and straightforward and basically before diving into
code, what I want to show you is a couple of examples that maybe a little bit of useful for your solution.
So the examples go like this, so if the current day is like this, give me this laser.
So it's the 30 of October 2001, then the next day it's going to be 31.
Right.
Because we know that October has 31 days in this month.
Next, we know that if, for example, we have 25 December 1998, then it will be 26 December 1998.
And that's no problem.
But if we still have year 28 of February 2020, then the next day is not going to be the first of marriage.
But it will be 29 because it's a leap year.
OK, so you need to check if a given year like 2020 is a leap year or not.
And based on that result, do you like to print the next day?
And finally, we also have like 28, 28, February 20, 19.
Then the next day is going to be like because we know that the next day is it's not a leap year.
So the next day is going to be also the next month, the first day of the next month.
So that's basically, guys, what do you have to do?
It's not so easy program.
It has a lot of conditions, a lot of things that you need to take into account to like, you know,
to like give full support, to write a full program, full working program, complete program that knows
to get one day and to return the next day.
OK, so you are is the future programmer need to take into account also all the small details and to
treat every program like it should.
So guys, I wish you good luck.
You will need it.
Give it a try, OK?
Don't give up, ok?
Don't give up.
Give it some time.
Give it some thought.
Even if it if it will take you one hour or two hours to come up with a full solution.
And only once you are done with that, feel free to move on and to check out the solution video.
So my name is Lood, this is Alphatech and I will see you in the next video.
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.