URI Online Judge | 1009 Salary with Bonus Solve with source code
URI Online Judge | 1009
Salary with Bonus
Adapted by Neilor Tonin, URI Brazil
Timelimit: 1
- Don’t forget to print the line's end after the result, otherwise you will receive “Presentation Error”.
- Don’t forget the blank spaces.
Input
The input file contains a text (employee's first name), and two double precision values, that are the seller's salary and the total value sold by him/her.
Output
Print the seller's total salary, according to the given example.
Solve
seller_name = input()
salary = float(input())
sale = float(input())
TOTAL = .15*sale+salary
print("TOTAL = R$ %.2f"%TOTAL)
Comments
Post a Comment