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, and salary is its field. Do not change the name of these variables.

svg viewer

Get hands-on with 1200+ tech skills courses.