Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <iomanip>
- using namespace std;
- int main() {
- double work_days_in_month;
- double earned_money;
- double dollars;
- cin >> work_days_in_month >> earned_money >> dollars;
- double month_salary_in_dollars = work_days_in_month * earned_money;
- double revenue = month_salary_in_dollars * 12 + month_salary_in_dollars * 2.5;
- double tribute = revenue * (25 / 100.0);
- double net_income_in_dollars = revenue - tribute;
- double net_income_in_leva = net_income_in_dollars * dollars;
- double average_profit_per_day_in_leva = net_income_in_leva / 365;
- cout << fixed << setprecision(2) << average_profit_per_day_in_leva << endl;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement