cout << "The base fare is $" << cost <<endl;
cout << "With " <<numberTransfers<< " transfers, the base cost is $" << baseCost <<endl;
cout << "Enter 1 for E ticket class"<<endl;
cout << "Enter 2 for F ticket class"<<endl;
cout << "Enter 3 for O ticket class"<<endl;
cout << "Enter 4 for X ticket class"<<endl;
cin >> calculate;
switch (calculate)
{
case '1':
subcharge = (baseCost *1);
break;
case '2':
subcharge = (baseCost *2.5);
case '3' :
subcharge = (baseCost *5);
case '4' :
subcharge = (baseCost *3);
}
cout << "Your subcharge is $"<< subcharge <<endl;
totalCost = subcharge +(subcharge*.10);
cout << "With a 10% sales tax the total cost is $" <<totalCost <<endl;
cout << "Run the program again? Y or N" << endl;
cin >> choice;
if (choice != 'N' && choice != 'Y')
{
cout << "Invalid input";
}