This preview shows page 1. Sign up to view the full content.
Unformatted text preview: %.2f\n',n,mtotal); end avgcost = TotCost / nmonths; avgmins = TotMins / nmonths; avgcostpmin = TotCost / TotMins; fprintf('\nThe total cost for the %.0f months was: %.2f', nmonths,TotCost) fprintf('\nThe average cost per month was: %.2f',avgcost); fprintf('\nThe total minutes used was: %.0f',TotMins); fprintf('\nThe average amount of minutes used per month was: %.0f',avgmins); fprintf('\nThe average cost per minute was: %.2f',avgcostpmin); fprintf('\nYou exceeded the included minutes in %.0f of the %.0f months.\n',nexceed,nmonths); 14W-CF 02/08/2011 Campos,Tyler HW4 7/8 Wednesday, February 09, 2011 4:28 PM HW4 Page 1...
View Full Document
This note was uploaded on 09/19/2011 for the course ENGE 1114 taught by Professor Twknott during the Fall '06 term at Virginia Tech.
- Fall '06