Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main() {
- int nylon, paint, thinner, hours;
- cin >> nylon >> paint >> thinner >> hours;
- double materialsPrice = (nylon + 2) * 1.50 + paint * 14.50 * 1.1 + thinner * 5 + 0.40;
- double workersPrice = materialsPrice * hours * 0.30;
- double totalPrice = materialsPrice + workersPrice;
- cout << totalPrice << endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement