Thursday, June 7, 2018

URI 1048:: SOLUTION

URI Online Judge | 1048

Salary Increase

The company ABC decided to give a salary increase to its employees, according to the following table:


Read the employee's salary, calculate and print the new employee's salary, as well the money earned and the increase percentual obtained by the employee, with corresponding messages in Portuguese, as the below example.

Input

The input contains only a floating-point number, with 2 digits after the decimal point.

Output

Print 3 messages followed by the corresponding numbers (see example) informing the new salary, the among of money earned and the percentual obtained by the employee. Note:
Novo salario:  means "New Salary"
Reajuste ganho: means "Money earned"
Em percentual: means "In percentage"
Input SampleOutput Sample
400.00Novo salario: 460.00
Reajuste ganho: 60.00
Em percentual: 15 %
800.01Novo salario: 880.01
Reajuste ganho: 80.00
Em percentual: 10 %
2000.00Novo salario: 2140.00
Reajuste ganho: 140.00
Em percentual: 7 %


[WAIT]
     First of all, think yourself that you have tried enough for the problem. If you did not please read the program once. REMEMBER one think, just believe in yourself.....YOU CAN.....YOU KNOW....




See the ANSWER here...

No comments:

Post a Comment