daycounter_316

# daycounter_316 - sum2 = sum1 + 1; case mo = 8 sum1 = 59 +...

This preview shows page 1. Sign up to view the full content.

function nd = days(mo, da, leap) f for i = switch mo case mo = 1 sum = da; case mo = 2 sum = 31 + da; case mo = 3 sum1 = 59 + da; sum2 = sum1 + 1; case mo = 4 sum1 = 59 + da; sum2 = sum1 + 1 case mo = 5 sum1 = 59 + da; sum2 = sum1 + 1; case mo = 6 sum1 = 59 + da; sum2 = sum1 + 1; case mo = 7 sum1 = 59 + da;
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: sum2 = sum1 + 1; case mo = 8 sum1 = 59 + da; sum2 = sum1 + 1; case mo = 9 sum1 = 59 + da; sum2 = sum1 + 1; case mo = 10 sum1 = 59 + da; sum2 = sum1 + 1; case mo = 11 sum1 = 59 + da; sum2 = sum1 + 1; case mo = 12 sum1 = 59 + da; sum2 = sum1 + 1;...
View Full Document

## This note was uploaded on 09/21/2011 for the course EGM 3344 taught by Professor Raphaelhaftka during the Spring '09 term at University of Florida.

Ask a homework question - tutors are online