Help with calendar program!!

Hello, i have been racking my brain to figure out this calendar program for days and i cant find anything close to it on any site please help!

I have to write a program that prompts the user to enter a date (month, day, and year) and the week day for this date, and displays a calendar page for any month in the same year, specified by the user after another prompt. Validate the user input and if it is invalid, ask the user to enter again. If user enters three times an invalid day or month, announce that the program will exit and exit the program. Use the following rules for determining leap years: A leap year is one whose number is exactly divisible by four. Century years, however, are only leap years if they are exactly divisible by 400. Hence 1900 was not a leap year but 2000 was. The program should not use arrays.

I appreciate any help i can get i havent been able to come up with anything so far and its driving me crazy. Thank you!
Topic archived. No new replies allowed.