#include int main () { const double express_pass_cost = 74.50, regular_pass_cost = 60.50, ticket_cost = 0.85; int express_rides, regular_rides; double regular_pass_total, ticket_total; cout << "Enter the number of express and regular rides expected: "; cin >> express_rides >> regular_rides; while ((express_rides != 0) || (regular_rides != 0)) { regular_pass_total = regular_pass_cost + (express_rides * ticket_cost); ticket_total = (express_rides * 3 * ticket_cost) + (regular_rides * 2 * ticket_cost); if ((express_pass_cost <= regular_pass_total) && (express_pass_cost <= ticket_total)) { cout << "An express pass is the cheapest option." << endl; } else if (regular_pass_total <= ticket_total) { cout << "A regular pass is the cheapest option." << endl; } else { cout << "Tickets are the cheapest option." << endl; } cout << "Enter the number of express and regular rides expected: "; cin >> express_rides >> regular_rides; } return 0; // could be omitted (would be assumed) }