Advertisement
Spocoman

Programming Book

Sep 21st, 2023 (edited)
982
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.47 KB | None | 0 0
  1. #include <iostream>
  2. #include <iomanip>
  3.  
  4. using namespace std;
  5.  
  6. int main() {
  7.     double pagePrice, coverPrice, discountPercentage, designerPrice, teamPercentage;
  8.     cin >> pagePrice >> coverPrice >> discountPercentage >> designerPrice >> teamPercentage;
  9.  
  10.     double bookPrice = ((pagePrice * 899 + coverPrice * 2) * (100.0 - discountPercentage)) / 100 * (100.0 - teamPercentage) / 100;
  11.    
  12.     cout << "Avtonom should pay " << bookPrice << " BGN." << endl;
  13.  
  14.     return 0;
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement