(10C) Day of the Week
|
03-12-2021, 05:14 AM
(This post was last modified: 03-12-2021 05:37 AM by Gamo.)
Post: #1
|
|||
|
|||
(10C) Day of the Week
Since the poor HP-10C never have a Solutions Handbook like HP-11C or
ohters like HP's Applications Book. I'm imprementing a bit from HP-25 Applications Book on page 49 Title "Calendar, Day of the Week, Days betweenn Two Dates" ---------------------------------------- Steps: 1. Compute N(m,d,y) [f] [PRGM] Month [STO] 1 Day [STO] 2 Year [STO] 3 [R/S] Display N 2. Compute Day of the week (0 = Sunday) [R/S] 3. For number of days store first N from Step 1 and [STO] 7 4. Repeat steps 1 then [RCL] 7 [-] display number of days ----------------------------------------- Program: Code:
Example: What day of the week is March 31, 2021 and How many days to December 1, 2021 [f] [PRGM] 3 [STO] 1 31 [STO] 2 2021 [STO] 3 [R/S] display 117274 [ST0] 7 [R/S] 3 // Wednesday Remark: If no need to find number of days don't have to do [STO] 7 Number of days: 12 [STO] 1 1 [STO] 2 Remark: If same year no need to store again to [STO] 3 [R/S] display 117519 [RCL] 7 [-] display 245 // answer 245 days To check answer using the HP-12C M.DY mode 3.312021 [ENTER] 0 [DATE] display 3,31,2021 "3" Previous result on display enter 12.012021 [△DYS] display "245" Gamo 3/2021 |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
(10C) Day of the Week - Gamo - 03-12-2021 05:14 AM
|
User(s) browsing this thread: 1 Guest(s)