(B) An amount equal to 50 percent of the amount that bears the same proportion to the available appropriated amount for such fiscal year as the total amount of the undergraduate student need at the institution for the preceding fiscal year bears to the total amount of undergraduate student need at all institutions participating under this part for the preceding fiscal year. (2) Definitions In this subsection: (A) Available appropriated amount The term available appropriated amount means— (i) the amount appropriated under section 441(b) for a fiscal year, minus (ii) the amounts reserved under subsection (a) for such fiscal year. (B) Average cost of attendance The term average cost of attendance means, with respect to an institution, the average of the attendance costs for a fiscal year for students which shall include— (i) tuition and fees, computed on the basis of information reported by the institution to the Secretary, which shall include— (I) total revenue received by the institution from undergraduate tuition and fees for the second year preceding the year for which it is applying for an allocation