Help needed program

Discussion in 'Java' started by Tareeq, Feb 28, 2007.

Thread Status:
Not open for further replies.
  1. Tareeq

    Tareeq New Member

    Joined:
    Feb 28, 2007
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    0
    this is a question iam working on

    Write a program that prompts the user to enter the year and first day of the year, and
    displays the calendar table for the year on the console. For example, if the user
    entered the year 2005, and 6 for Saturday, January 1, 2007, your program should
    display the calendar for each month in the year.


    January 2007
    Sun Mon Tue Wed Thu Frid Sat
    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
    . . .
    December 2007
    Sun Mon Tue Wed Thu Frid Sat
    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


    Guide: User inputs are the year and the first day of the year (ie: 1 for Sunday, 2
    for Monday, 3 for Tuesday, so on and so forth). Refer Liang textbook on
    Calendar class.




    actually got this program but stuck and dont know how to go abt it, plz help thnx
     
  2. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,376
    Likes Received:
    388
    Trophy Points:
    83
Thread Status:
Not open for further replies.

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice