CALENDAR Day of week, future date, past date, and number of days calculations. Program: CALENDAR Author: John P. Powers (jpp@cpdvax.csc.ti.com) Date: November 5, 1992 This program calculates day of week, the number of days between two dates, and a past or future date. Execute CALENDAR to begin the main program. A menu is then displayed: [ CMP | DATE1 | DATE2 | -DAYS | QUIT ] Enter an early date into DATE1 and a later date into DATE2. To enter a date press or . The calculator then prompts for a date. Type in the date in the MM.DDYYYY format. For example, to enter November 5, 1992, type 11.051992. To calculate the number days between two dates, enter DATE1 and DATE2, then press [CMP] [-DAYS]. To calculate a future date, enter DATE1 and the number of days. Press to enter the number of days. The calculator then prompts for the number of days. Then press [CMP] [DATE2]. The future date is displayed in the format MM.DDYYYY and the day of the week is displayed. To calculate a date in the past, enter DATE2 and the number of days, then press [CMP] [DATE1]. The past date and day of the week is displayed. This program uses ACM algorithm 199.