Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <iomanip>
- //#include <stdio>
- using namespace std;
- struct sotrudnik
- {
- char fio[40];
- int tabelnomer;
- int kolchasov;
- double tarif;
- } banksystem [100];
- int main()
- {
- int n, i, j;
- cout<<"vvedite kol-vo sotrudnikov: ";
- cin>>n;
- for (i = 0; i < n; i++){
- cout<<"Vvedite FIO: ";
- cin>>banksystem[i].fio;
- cout<<"Vvedite tabelinii nomer: ";
- cin>>banksystem[i].tabelnomer;
- cout<<"Vvedite kol-vo chasov: ";
- cin>>banksystem[i].kolchasov;
- cout<<"Vvedite po4asovoi tarif: ";
- cin>>banksystem[i].tarif;
- }
- for(i=0; i<n; i++)
- {
- cout<<setw(30)<<banksystem[i].fio<<setw(5)<<banksystem[i].tabelnomer<<setw(15);
- if(banksystem[i].kolchasov>144)
- cout<<banksystem[i].tarif*(2*banksystem[i].kolchasov-144)*0.88;
- else
- cout<<banksystem[i].tarif*banksystem[i].kolchasov*0.88;
- cout<<endl;
- }
- system("pause");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement