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
All right, hello there.
And in this video, we are going to solve the previous exercise that has to calculate your monthly salary,
yours or maybe some some of your friends.
So how should you approach this exercise?
So you have to write a program that gets salary, which is calculated is kind of, let's say, dollars
per hour.
OK, and also what you have to do is to get a total hours worked.
Right.
Worked in a month.
OK, so that will be just hours.
And we know that once we have basic information, we will be able to tell how much money we've made
and where some other employee made during a given month.
So it's going to be not so complicated.
We have to create two variables, two variables, each salary.
OK, basically, let's do it like, I don't know, let's use maybe instead of pened, probably going
to be a floating point type.
So float's salary and also we will specify total hours.
So total hours.
Of course, these variable two may be of a floating coin type.
That's also OK.
I'm just using it for convenience, for my convenience.
So let's say now.
Now what do we have to do is to run these printf Gantner or Inservice doesn't matter.
Enter your salary, salary, care hour per hour.
So that's what the user is requested to do.
And we are going to use ask can have to read this information and store it inside of the salary variable.
So salary.
That's it.
Now what we will have to also do is read the total hours.
So enter the number of hours you worked in the last month, for example.
OK, and now what we have to do is do this kind of function to read this information, using person
to speak and it inside of total hours.
OK, guys, once again, nothing very complicated.
Just using print.
Athens can have to read the information.
And now the final part.
How should we calculate the money that we've made in a given month?
So print out your expected expected salary should be percentage F and what do you think should be printed
instead of this percentage?
So we said we have the salary for our salary per hour and we have the total amount of hours that we
work.
So we simply will multiply salary multiplied by total hours.
That's it.
That's how you calculate it.
Now let's build and run it and make sure that we run.
A simple example in this example works as we expect it.
So enter your salary per hour, let's say, I don't know.
Fifty dollars per hour.
You are an expert and enter the number of hours worked in the last month.
So let's say you worked about two hundred hours, so your expected salary should be 10000 some guys.
So just the limit, the result.
Just use your point to let's run it once again.
So fifty two hundred and one thousand dollars is your expected salary.
If you've made, if you work 50, if you've worked 200 hours and 50 hours, pay fifty dollars, Berowra
is your price.
So that's your final salary.
So awesome.
Make sure you compare it with the salary that the boss pays you.
Right.
Because now you're an expert and you can write a program that will calculate it for you.
So thank you guys for watching and have a great day.
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.