Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- int stopien, lata, pensja, wynagrodzenie;
- setlocale(LC_CTYPE, "Polish");
- pensja = 1000;
- cout << "Podaj ilość lat pracy: ";
- cin >> lata;
- cout<<"Podaj stopień zawodowy:\n\n1) Stażysta\n2) Kontraktowy\n3) Mianowany\n4) Dyplomowany\n\nOpcja: ";
- cin>>stopien;
- if (lata < 20) {
- wynagrodzenie = pensja * 0.75;
- } else if ( lata >= 20 && lata < 25 ) {
- wynagrodzenie = pensja * 1;
- } else if ( lata >= 25 && lata < 30 ) {
- wynagrodzenie = pensja * 1.5;
- } else if (lata >= 35 && lata < 40 ) {
- wynagrodzenie = pensja * 2;
- } else if (lata >= 40 && lata < 45) {
- wynagrodzenie = pensja * 3;
- } else if (lata >= 45) {
- wynagrodzenie = pensja * 4;
- }
- if (stopien == 1) {
- cout <<"wynagrodzenie netto: " << wynagrodzenie<<"\n";
- cout<< "wynagrodzenie brutto: " << wynagrodzenie * 1.35;
- } else if (stopien == 2) {
- cout<<"test";
- } else if (stopien == 3) {
- cout << "test";
- } else if (stopien == 4) {
- cout << "test";
- } else {
- cout << "Opcja niedostępna";
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement