Thread: Help with Day Month Year Program..due by 12

  1. #1
    Registered User
    Join Date
    Dec 2007
    Posts
    1

    Help with Day Month Year Program..due by 12

    You are to make a program that prompts the user for the month, day, and year, numerically. For instance, if the user enters 12 for the month, that indicates September. It will then output a nicely formatted string.

    For example, if the user entered 2 3 and 2004, the program would output:

    February 3, 2004

    You should perform error checking, and prompt the user again if they enter data that's out of range for the month or day. However, you needn't worry about which months have a certain number of days, or leap years. So the valid range for days would always be 1 - 31. However, if you do feel like incorporating this, feel free.


    i am troubleshooting but i might be way off..i'm a beginner and would really appreciate some help as to i dont think this program is very difficult

  2. #2
    Registered User
    Join Date
    Oct 2006
    Location
    Omaha, Nebraska
    Posts
    116
    gonna need some more information if anyones gonna be able to help you out.
    narrow the question down.
    what exactly are you having problems with?
    also, post the code that you have so far.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Program Plan
    By Programmer_P in forum C++ Programming
    Replies: 0
    Last Post: 05-11-2009, 01:42 AM
  2. Leap year program prints wrong output
    By Guti14 in forum C Programming
    Replies: 8
    Last Post: 08-24-2004, 11:56 AM
  3. Simplified code
    By soonerfan in forum C Programming
    Replies: 2
    Last Post: 12-05-2001, 03:50 PM
  4. Help Me Out!! Pls
    By Joanna in forum C++ Programming
    Replies: 5
    Last Post: 10-27-2001, 05:08 AM
  5. Can't figure out why?
    By kwigibo in forum C Programming
    Replies: 10
    Last Post: 10-14-2001, 10:58 PM