Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<iostream>
- #include<iomanip> //for setprecision()
- using namespace std;
- int main()
- {
- string emp_name;
- double fixed_salary, totalSale_per_month, bonus, total_salary;
- cin >> emp_name;
- cin >> fixed_salary;
- cin >> totalSale_per_month;
- bonus = (15*totalSale_per_month) / 100;
- total_salary = fixed_salary + bonus;
- cout << "TOTAL = R$ " << fixed << setprecision(2) << total_salary << endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement