tubular

babby's first TI-BASIC

Sep 12th, 2012
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. PROGRAM:WKDYCALC
  2. :ClrHome
  3. :Disp "WEEKDAY CALC"
  4. :Input "Y=",Y
  5. :Input "M=",M
  6. :If M<3:Then
  7. :M+12→M
  8. :Y-1→Y
  9. :End
  10. :M*2+Y+int((M+1)*3/5)+int(Y/4)-int(Y/100)+int(Y/400)→Y
  11. :Input "D=",M
  12. :Y+M→Y
  13. :Disp "CALENDAR OFFSET"
  14. :Input "(EG. 1=GREG) C=",M
  15. :"Input C=? (1=GREG) ,M"
  16. :Y+M→Y
  17. :Y*2-int(Y/7)*14→Y
  18. :{1,3,4,3,7,4,11,6,17,5,22,3,25,5}→∟I
  19. :Disp "",sub("SUNMONTUESWEDNESTHURSFRISATUR",∟I(Y+1),∟I(Y+2))+"DAY"
  20. :0→Y:0→M
  21. :Output(1,1,""
Advertisement
Add Comment
Please, Sign In to add comment