void function ( ) { for ( int loc0 = 0 ; loc0 < carList . length ; loc0 ++ ) { totalCost += carList [ loc0 ] . getCost ( ) ; } }
calculates total cost of cars concode_field_sep int carAmount concode_elem_sep Car carList[] concode_elem_sep Logger LOGGER concode_elem_sep int totalCost concode_field_sep void searchCar concode_elem_sep void initialize concode_elem_sep void sortByConsumption concode_elem_sep void createPark concode_elem_sep void showPark