Thread: Calandar Program

  1. #1
    Registered User
    Join Date
    Oct 2001
    Posts
    1

    Question Calandar Program

    I have an assignment and I am not sure quite how to do it. I am not asking for the answer, just for some help. I am not quite sure where to start. We are creating a calandar for any year. I know we need to use the while loop but I dont know how to do it. If anyone has done this before and is willing to help I would really appericiate the help!

  2. #2
    the Corvetter
    Join Date
    Sep 2001
    Posts
    1,584
    be more specific on what you need help with.
    1978 Silver Anniversary Corvette

  3. #3
    Registered User mlupo's Avatar
    Join Date
    Oct 2001
    Posts
    72
    I am afriad that you'll have to start some code on your own.
    Nobody can help you conceptualize an application.

    Perhaps your instructor can give you some tips as to how to get started. How to logically think some psudo-code through.

    Also, nobody knows what's been covered in your class. If someone were to tell you to create a structure or to use a switch statement to select a month with, would you even be familair with these terms?

    So as you can see, your best bet is to take one thing at a time in the specification of your program. Make that happen, then move on to the next item in your specification. That's a common approach that I use.

    Sorry to disappoint!
    Mike

  4. #4
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,661
    > I have an assignment and I am not sure quite how to do it.
    Like all things, practice and experience. This usually means you have to make a mess of it occasionally - isn't learning fun.

    > I am not quite sure where to start
    Knowing that 1/1/2000 was a Saturday.

    From that you can work out what day the 1/1/year is, and from that, what day the first of each month is (use an array of 12 ints containing the number of days in each month).

    > I know we need to use the while loop
    Why must you?
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Need help with a program, theres something in it for you
    By engstudent363 in forum C Programming
    Replies: 1
    Last Post: 02-29-2008, 01:41 PM
  2. Replies: 4
    Last Post: 02-21-2008, 10:39 AM
  3. Replies: 3
    Last Post: 03-04-2005, 02:46 PM
  4. My program, anyhelp
    By @licomb in forum C Programming
    Replies: 14
    Last Post: 08-14-2001, 10:04 PM