Calendar Program in C Language

Enter a date(MM-DD-YYYY): 10-26-1990

Page 1 of 1

2 Replies - 6725 Views - Last Post: 25 April 2010 - 12:03 PM Rate Topic: -----

#1 Guest_salemwou*


Reputation:

Calendar Program in C Language

Posted 25 April 2010 - 10:56 AM

Write a program that accepts as input a date in the form,
MM-DD-YYYY, where MM represents the month
of the year, DD represents the day within
the month and YYYY represents the century and
year.

After input of the date, display the date in textual
format and a calendar of the month the date falls
within. Keep prompting for dates until the user inputs
a date of all zeros, 00-00-0000, then terminate the
program. Make sure that all values input are valid.


The following is an example run of the program with
user input in boldface.









C:\>calendar
Enter a date(MM-DD-YYYY): 10-26-1990

Friday, October 26, 1990

S M T W T F S
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31

Enter a date(MM-DD-YYYY): 00-00-0000

End of program.
____________________________--
please I am relay want an answer .

Is This A Good Question/Topic? 0

Replies To: Calendar Program in C Language

#2 JackOfAllTrades  Icon User is offline

  • Saucy!
  • member icon

Reputation: 6039
  • View blog
  • Posts: 23,436
  • Joined: 23-August 08

Re: Calendar Program in C Language

Posted 25 April 2010 - 11:07 AM

No, we are NOT your personal code-writing service. Show us what you have done and what errors you are receiving. Make sure to post your code in code tags

:code:

Please re-read the rules:

Dream.In.Code has a policy by which we prefer to see a good faith effort on your part before providing source code for homework assignments. Please post the code you have written in an effort to resolve the problem, and our members would be happy to provide some guidance. Be sure to include a description of any errors you are encountering as well.

Please post like this:

Thank you for helping us helping you.
Was This Post Helpful? 0
  • +
  • -

#3 IngeniousHax  Icon User is offline

  • |>|20-514<|{3|2

Reputation: 78
  • View blog
  • Posts: 1,358
  • Joined: 28-March 09

Re: Calendar Program in C Language

Posted 25 April 2010 - 12:03 PM

maybe this is what you were looking for?
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1