Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main() {
- int required_rooms {0};
- const int tax_rate {6};
- cout << "Hello, Welcome to Andy's rooms to spare" << endl;
- cout << "=======================================" << endl;
- cout << "\nHow meny rooms do you require? ";
- cin >> required_rooms;
- cout << "\nYou require: " << required_rooms << " rooms" << endl;
- double price_per_room {25.99};
- cout << endl;
- cout << "\nPrice per room: $" << price_per_room << endl;
- cout << "\nCost for: " << required_rooms << " rooms $" << (required_rooms * price_per_room) << endl;
- cout << "\nTotal Tax: $" << (required_rooms * price_per_room /100 * tax_rate) << endl;
- cout << "\nTotal Price for " << required_rooms << " rooms: $" << (required_rooms * price_per_room) + (required_rooms * price_per_room /100 * tax_rate) << endl;
- cout << "\nThis is vaild for " << 30 << " days" << endl;
- cout <<"\n=======================================";
- cout << endl;
- return 0;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement