if( vehicleUse == 'C' ) // Carpool
{
// TODO: Convert to a switch statement
if( vehicleLoad == 'E' ) // 6-8
cout << "Ford Windstar" << endl;
else if( vehicleLoad == 'F' ) // 8-10
cout << "Dodge RAM Van" << endl;
else if( vehicleLoad == 'G' ) // 10-16
cout << "Blue Bird Mini Bus" << endl;
else // A-B-C-D
cout << "Consider a smaller vehicle." << endl;
}
else if( vehicleUse == 'F' ) // Family
{
// TODO: Convert to a switch statement
if( vehicleLoad == 'C' ) // 3-4
cout << "Ford Thunderbird" << endl;
else if( vehicleLoad == 'D') // 4-6
cout << "Pontiac Grand Prix" << endl;
else // A-B, E-F-G
cout << "Consider a smaller or larger vehicle."
<< endl;
}
else if( vehicleUse == 'S' ) // Sport
{
// TODO: Convert to a switch statement
if( vehicleLoad == 'A' ) // 1-2
cout << "Dodge Viper" << endl;
else if( vehicleLoad == 'B' ) // 2-3
cout << "Ford Mustang" << endl;
else // C-D-E-F-G
cout << "Consider a larger vehicle." << endl;
}
else // Invalid vehicle use
cout << "You entered an invalid choice: "
<< vehicleUse << endl;
cout << "\nEnd Program" << endl;
return 0;
}