Before:
// Print reservations by type
switch(sportChoice)
{
case 'f': // Print all flying reservations
for(count = 0; count < size; count ++)
{
if(typeList[count] == 'f')
{
printOneReservation(typeList, ageList, count);
totalReservationsOfType ++;
}
}
break;
case 'g': // Print all gliding reservations
for(count = 0; count < size; count ++)
{
if(typeList[count] == 'g')
{
printOneReservation(typeList, ageList, count);
totalReservationsOfType ++;
}
}
break;
case 'h': // Print all hang-gliding reservations
for(count = 0; count < size; count ++)
{
if(typeList[count] == 'h')
{
printOneReservation(typeList, ageList, count);
totalReservationsOfType ++;
}
}
break;
}