Salary Calculation
CodeChefOpen on judge ↗
Problem statement: An Employer has decided to provide salary deduction to his employees. Deduction percentage is calculated based on their grade and number of years of experiences given in the below table. Calculate the net salary based on the table by taking salary of an employee as input. GRADE No. years of experiences Deduction Percentage 1 more than 15 30 10-15 20 Below 10 10 2 more than 1
HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17
CodeSearch Tutor
Hints, not spoilers — it won’t hand over the full solution unless you insist.
Sign in to chat with the tutor and save your progress.
Sign in to start