Challenge: Decide Employee Salary
This lesson brings you a challenge to solve.
Problem statement
Define a struct employee
with a field salary
and make a method giveRaise()
for this type to increase the salary with a certain percentage.
Note:
employee
is the struct type, andsalary
is its field. Do not change the name of these variables.
Get hands-on with 1400+ tech skills courses.