All language subtitles for 7. Employee Salary Calculator - Solution

af Afrikaans
ak Akan
sq Albanian
am Amharic
ar Arabic
hy Armenian
az Azerbaijani
eu Basque
be Belarusian
bem Bemba
bn Bengali
bh Bihari
bs Bosnian
br Breton
bg Bulgarian
km Cambodian
ca Catalan
ceb Cebuano
chr Cherokee
ny Chichewa
zh-CN Chinese (Simplified)
zh-TW Chinese (Traditional)
co Corsican
hr Croatian
cs Czech
da Danish
nl Dutch
en English
eo Esperanto
et Estonian
ee Ewe
fo Faroese
tl Filipino
fi Finnish
fr French
fy Frisian
gaa Ga
gl Galician
ka Georgian
de German
el Greek
gn Guarani
gu Gujarati
ht Haitian Creole
ha Hausa
haw Hawaiian
iw Hebrew
hi Hindi
hmn Hmong
hu Hungarian Download
is Icelandic
ig Igbo
id Indonesian
ia Interlingua
ga Irish
it Italian
ja Japanese
jw Javanese
kn Kannada
kk Kazakh
rw Kinyarwanda
rn Kirundi
kg Kongo
ko Korean
kri Krio (Sierra Leone)
ku Kurdish
ckb Kurdish (Soranî)
ky Kyrgyz
lo Laothian
la Latin
lv Latvian
ln Lingala
lt Lithuanian
loz Lozi
lg Luganda
ach Luo
lb Luxembourgish
mk Macedonian
mg Malagasy
ms Malay
ml Malayalam
mt Maltese
mi Maori
mr Marathi
mfe Mauritian Creole
mo Moldavian
mn Mongolian
my Myanmar (Burmese)
sr-ME Montenegrin
ne Nepali
pcm Nigerian Pidgin
nso Northern Sotho
no Norwegian
nn Norwegian (Nynorsk)
oc Occitan
or Oriya
om Oromo
ps Pashto
fa Persian
pl Polish
pt-BR Portuguese (Brazil)
pt Portuguese (Portugal)
pa Punjabi
qu Quechua
ro Romanian
rm Romansh
nyn Runyakitara
ru Russian
sm Samoan
gd Scots Gaelic
sr Serbian
sh Serbo-Croatian
st Sesotho
tn Setswana
crs Seychellois Creole
sn Shona
sd Sindhi
si Sinhalese
sk Slovak
sl Slovenian
so Somali
es Spanish
es-419 Spanish (Latin American)
su Sundanese
sw Swahili
sv Swedish
tg Tajik
ta Tamil
tt Tatar
te Telugu
th Thai
ti Tigrinya
to Tonga
lua Tshiluba
tum Tumbuka
tr Turkish
tk Turkmen
tw Twi
ug Uighur
uk Ukrainian
ur Urdu
uz Uzbek
vi Vietnamese
cy Welsh
wo Wolof
xh Xhosa
yi Yiddish
yo Yoruba
zu Zulu
Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated: 1 00:00:00,570 --> 00:00:02,040 All right, hello there. 2 00:00:02,100 --> 00:00:10,770 And in this video, we are going to solve the previous exercise that has to calculate your monthly salary, 3 00:00:11,100 --> 00:00:14,070 yours or maybe some some of your friends. 4 00:00:14,940 --> 00:00:18,050 So how should you approach this exercise? 5 00:00:18,060 --> 00:00:25,050 So you have to write a program that gets salary, which is calculated is kind of, let's say, dollars 6 00:00:25,050 --> 00:00:25,980 per hour. 7 00:00:26,760 --> 00:00:32,790 OK, and also what you have to do is to get a total hours worked. 8 00:00:33,150 --> 00:00:33,540 Right. 9 00:00:33,540 --> 00:00:36,340 Worked in a month. 10 00:00:36,360 --> 00:00:38,820 OK, so that will be just hours. 11 00:00:39,270 --> 00:00:48,120 And we know that once we have basic information, we will be able to tell how much money we've made 12 00:00:48,120 --> 00:00:52,180 and where some other employee made during a given month. 13 00:00:52,890 --> 00:00:55,940 So it's going to be not so complicated. 14 00:00:56,220 --> 00:01:00,630 We have to create two variables, two variables, each salary. 15 00:01:00,810 --> 00:01:07,260 OK, basically, let's do it like, I don't know, let's use maybe instead of pened, probably going 16 00:01:07,260 --> 00:01:08,580 to be a floating point type. 17 00:01:08,580 --> 00:01:13,410 So float's salary and also we will specify total hours. 18 00:01:13,410 --> 00:01:15,270 So total hours. 19 00:01:15,510 --> 00:01:19,470 Of course, these variable two may be of a floating coin type. 20 00:01:19,770 --> 00:01:20,880 That's also OK. 21 00:01:21,840 --> 00:01:25,860 I'm just using it for convenience, for my convenience. 22 00:01:26,400 --> 00:01:29,380 So let's say now. 23 00:01:29,790 --> 00:01:35,880 Now what do we have to do is to run these printf Gantner or Inservice doesn't matter. 24 00:01:35,880 --> 00:01:43,890 Enter your salary, salary, care hour per hour. 25 00:01:44,100 --> 00:01:46,830 So that's what the user is requested to do. 26 00:01:46,830 --> 00:01:54,050 And we are going to use ask can have to read this information and store it inside of the salary variable. 27 00:01:54,060 --> 00:01:55,520 So salary. 28 00:01:55,690 --> 00:01:56,310 That's it. 29 00:01:57,030 --> 00:02:02,150 Now what we will have to also do is read the total hours. 30 00:02:02,160 --> 00:02:09,080 So enter the number of hours you worked in the last month, for example. 31 00:02:09,130 --> 00:02:16,200 OK, and now what we have to do is do this kind of function to read this information, using person 32 00:02:16,200 --> 00:02:19,780 to speak and it inside of total hours. 33 00:02:20,730 --> 00:02:23,790 OK, guys, once again, nothing very complicated. 34 00:02:23,790 --> 00:02:24,660 Just using print. 35 00:02:24,670 --> 00:02:26,580 Athens can have to read the information. 36 00:02:27,900 --> 00:02:30,660 And now the final part. 37 00:02:30,660 --> 00:02:34,880 How should we calculate the money that we've made in a given month? 38 00:02:35,220 --> 00:02:46,620 So print out your expected expected salary should be percentage F and what do you think should be printed 39 00:02:46,620 --> 00:02:47,880 instead of this percentage? 40 00:02:48,930 --> 00:02:59,430 So we said we have the salary for our salary per hour and we have the total amount of hours that we 41 00:02:59,430 --> 00:02:59,910 work. 42 00:02:59,910 --> 00:03:06,810 So we simply will multiply salary multiplied by total hours. 43 00:03:07,260 --> 00:03:07,910 That's it. 44 00:03:08,250 --> 00:03:09,670 That's how you calculate it. 45 00:03:10,530 --> 00:03:15,210 Now let's build and run it and make sure that we run. 46 00:03:15,210 --> 00:03:18,870 A simple example in this example works as we expect it. 47 00:03:18,870 --> 00:03:22,380 So enter your salary per hour, let's say, I don't know. 48 00:03:22,920 --> 00:03:25,050 Fifty dollars per hour. 49 00:03:25,080 --> 00:03:30,180 You are an expert and enter the number of hours worked in the last month. 50 00:03:30,180 --> 00:03:39,840 So let's say you worked about two hundred hours, so your expected salary should be 10000 some guys. 51 00:03:40,170 --> 00:03:42,270 So just the limit, the result. 52 00:03:42,420 --> 00:03:46,200 Just use your point to let's run it once again. 53 00:03:46,210 --> 00:03:52,170 So fifty two hundred and one thousand dollars is your expected salary. 54 00:03:52,470 --> 00:04:03,060 If you've made, if you work 50, if you've worked 200 hours and 50 hours, pay fifty dollars, Berowra 55 00:04:03,060 --> 00:04:03,990 is your price. 56 00:04:04,230 --> 00:04:06,660 So that's your final salary. 57 00:04:07,410 --> 00:04:08,450 So awesome. 58 00:04:08,460 --> 00:04:12,000 Make sure you compare it with the salary that the boss pays you. 59 00:04:12,150 --> 00:04:12,510 Right. 60 00:04:12,510 --> 00:04:18,050 Because now you're an expert and you can write a program that will calculate it for you. 61 00:04:18,690 --> 00:04:22,920 So thank you guys for watching and have a great day. 5355

Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.