00:01
In this video, we're going to be creating a program that will calculate an employee's bonus.
00:10
So let's say we have an employee's salary, with them 10 ,000 as the starting base.
00:29
So now we are going to calculate a bonus.
00:34
So we're going to ask the user, how many years have they worked? create a variable, get input from the user, asking enter years worked.
00:51
We'll wrap this in an integer function so that we convert our input to an integer.
01:05
So now we're going to calculate the bonus.
01:09
So let's do it for if they worked less than two years, less than or equal to two years.
01:21
So if worked, or variable is less than or equal to two, we want to give them a bonus of 10%.
01:40
Actually, we'll give them a bonus of zero.
01:44
And we'll print salary.
01:52
So we want to come out of this and do else.
01:58
If the worked command is greater than two...