Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main() {
- int chickenMenuCount, fishMenuCount, vegetarianMenuCount;
- cin >> chickenMenuCount >> fishMenuCount >> vegetarianMenuCount;
- double chickenMenuPrice = chickenMenuCount * 10.35;
- double fishMenuPrice = fishMenuCount * 12.40;
- double vegeterianMenuPrice = vegetarianMenuCount * 8.15;
- double delivery = 2.50;
- double menuPrice = chickenMenuPrice + fishMenuPrice + vegeterianMenuPrice;
- double dessertPrice = menuPrice / 5;
- double totalPrice = menuPrice + dessertPrice + delivery;
- cout << totalPrice << endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement