09-13-2024, 11:47 PM
BAM Sample Programs
|
Oriental Paintbrush Sim, a port of a QBJS program by Vince.
Kind of a fun thing for some mindless and minimalist doodling :
10-08-2024, 06:36 PM
(02-17-2024, 08:22 PM)CharlieJV Wrote: Latest batch of programs: Added 2024-02Your "Which weekday" program https://basicanywheremachine.neocities.o...ch_weekday has an error. Try the date 1-1-1800, which was a Wednesday. This program says it's Tuesday. I have the same problem. I can never get any Zeller's congruence formulas to consistently produce correct results.
While 1
Fix Bugs report all bugs fixed receive bug report end while
10-08-2024, 06:45 PM
(10-08-2024, 06:36 PM)TDarcos Wrote:(02-17-2024, 08:22 PM)CharlieJV Wrote: Latest batch of programs: Added 2024-02Your "Which weekday" program https://basicanywheremachine.neocities.o...ch_weekday has an error. Try the date 1-1-1800, which was a Wednesday. This program says it's Tuesday. Code: (Select All) Function GetWeekDay& (Day$) 'use MM/DD/YYYY format The above gives Wednesday as the proper result. Use with the below for quick insertion of the weekday name: Code: (Select All) Function GetWeekDayName$ (Day$) 'use MM/DD/YYYY format (10-08-2024, 06:36 PM)TDarcos Wrote:(02-17-2024, 08:22 PM)CharlieJV Wrote: Latest batch of programs: Added 2024-02Your "Which weekday" program https://basicanywheremachine.neocities.o...ch_weekday has an error. Try the date 1-1-1800, which was a Wednesday. This program says it's Tuesday. Hey, thank-you much for catching that. I replaced the algorithm with BASIC code from the "Doomsday rule" at Rosetta Code. (You might have to refresh the page to get the old version out of your browser cache.) Source code for the running program listed below the program. (10-08-2024, 06:45 PM)SMcNeill Wrote:(10-08-2024, 06:36 PM)TDarcos Wrote:(02-17-2024, 08:22 PM)CharlieJV Wrote: Latest batch of programs: Added 2024-02Your "Which weekday" program https://basicanywheremachine.neocities.o...ch_weekday has an error. Try the date 1-1-1800, which was a Wednesday. This program says it's Tuesday. Thanks, Steve. I wound up nabbing some "Doomsday rule" code from Rosetta code. That little proggie I had done was meant to demonstrate how we can take some old BASIC code and "BAMify" it.
10-19-2024, 05:14 PM
|
« Next Oldest | Next Newest »
|
Users browsing this thread: 2 Guest(s)