Guest User

01. Programming Book

a guest
May 3rd, 2018
131
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <iostream>
  2. #include <iomanip>
  3. using namespace std;
  4. int main() {
  5. double otpP,otpK,sumD;
  6. int dicL,proc;
  7. cin>>otpP>>otpK>>dicL>>sumD>>proc;
  8. double lv=(double)((otpP*899)+(otpK*2));
  9. lv/=100; lv*=(100-dicL);
  10. lv+=sumD;
  11. lv/=100; lv*=(100-proc);
  12. cout<<"Avtonom should pay ";
  13. cout<<fixed<<setprecision(2)<<lv<<" BGN.\n";
  14.   return false;
  15. }
RAW Paste Data