We would like to build a community for Small Basic programmers of any age who like to code. Everyone from total beginner to guru is welcome. Click here to register and share your programming journey!


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
My Golden Projects
#2
Hello z-s,

I looked at your Golden Project: calandar.
This program needs a makeover, i did some tests which gives wrong anwers:

1. For today 2024-03-20 your program gives Tuesday, but it is Wednesday.
2 For the consecutive days 2024-02-29 and 2024-03-01 both are Thursday !
3. For the last day of 2023 (23023-12-31) the program gives NO answer.

Some hints:
check if the input numbers are in the allowed range (month 15 or day 99) are accepted now)
You can replace all 93 lines for the calculation of d with one line, look at the Math.Remainder() function
Also for the calculation of b from the year with some attention for leap years.

HTH
[-] The following 1 user Likes WhTurner's post:
  • litdev
Reply


Messages In This Thread
My Golden Projects - by z-s - 03-15-2024, 02:56 PM
RE: My Golden Projects - by WhTurner - 03-20-2024, 04:25 PM
RE: My Golden Projects - by z-s - 03-20-2024, 04:31 PM
RE: My Golden Projects - by z-s - 04-13-2024, 05:54 AM

Forum Jump:


Users browsing this thread: 2 Guest(s)