here is my problem: the user input a started date for a year, and let said user input integer 6 for friday and the month is Jan and year is 2000. so January 2000 started on Saturday and ends on Monday.

how do i do a loop so it will calculated the correct start date for any given month follows?