Advertisement
Alberts00

Darba samaksa (LV)

Nov 27th, 2012
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.05 KB | None | 0 0
  1. #include <cstdlib>
  2. #include <iostream>
  3.  
  4. using namespace std;
  5.  
  6. int main(int argc, char *argv[])
  7. {
  8.     int bruto;
  9.     double neto;
  10.     double socn;
  11.     double apl_ien;
  12.     double iin;
  13.     int apgsk;
  14.     int premija;
  15.     int piemaksa;
  16.     int brutoarp;
  17.     double socnproc = 0.11;
  18.    
  19.     cout<< "Ievadiet bruto algu" << endl;
  20.     cin >> bruto;
  21.     cout<< "Ievadiet premijas apjomu" << endl;
  22.     cin >> premija;
  23.     cout<< "Ievadiet piemaksas apjomu" << endl;
  24.     cin >> piemaksa;
  25.     brutoarp= bruto+premija+piemaksa;
  26.     cout << "Kopeja alga ir " << brutoarp << endl;
  27.     cout << "Ievadiet apgadajamo skaitu" << endl;
  28.     cin >> apgsk;
  29.     socn = 0.11*brutoarp;
  30.     cout << "Socialais nodoklis ir " << socn << endl;
  31.     apl_ien = (brutoarp-socn)-45-(70*apgsk);
  32.     cout << "Apliekamie ienakumi ir " << apl_ien << endl;
  33.     iin = apl_ien * 0.25;
  34.     cout << "Iedzivotaju ienakuma nodoklis ir " << iin << endl;
  35.     neto = brutoarp-socn-iin;
  36.     cout << "Neto alga ir " << neto << endl;
  37.    
  38.     system("PAUSE");
  39.     return EXIT_SUCCESS;
  40. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement