#CCBCMCHIN0000025. Salary Increase (Salary Increase)
Salary Increase (Salary Increase)
Salary Increase
Source: beecrowd
Version: Phuoc Hung OJ Extended
Problem Statement
Given current salary , apply exactly one raise rate: 15% for , 12% for , 10% for , 7% for , and 4% otherwise. Compute the new salary, raise amount, and rate.
Input
One line contains nonnegative salary with at most two decimal places.
Output
Print three lines in order: Novo salario: X, Reajuste ganho: Y, and Em percentual: P %. Both monetary values require exactly two decimal digits; is the integer percentage.
Subtasks
- Subtask 1 (20 points): ; at most two decimal places.
- Subtask 2 (30 points): ; at most two decimal places.
- Subtask 3 (50 points): ; at most two decimal places.
Examples
Example 1
Input
400.00
Output
Novo salario: 460.00
Reajuste ganho: 60.00
Em percentual: 15 %
Explanation
The input gives 400.00. The original salary 400.00 selects 15%. The increase equals 400.00 x 15/100 = 60.00; the new salary is 460.00. Therefore the required output is ['Novo salario: 460.00', 'Reajuste ganho: 60.00', 'Em percentual: 15 %'].
Example 2
Input
800.00
Output
Novo salario: 896.00
Reajuste ganho: 96.00
Em percentual: 12 %
Explanation
The input gives 800.00. The original salary 800.00 selects 12%. The increase equals 800.00 x 12/100 = 96.00; the new salary is 896.00. Therefore the required output is ['Novo salario: 896.00', 'Reajuste ganho: 96.00', 'Em percentual: 12 %'].