Results 1 to 8 of 8

Thread: new here

  1. #1
    mathew is offline Member
    Join Date
    Dec 2011
    Posts
    3
    Rep Power
    0

    Post new here

    hiiii ever one i have project in java and i must finish it i will gave you the hits of it if any one can help me with it PLEAZ!!!!!!!

    create a class called SimpleCalendar that represents a simple calendar with properties for year, month, day, hour, minute and second. Look at the code snippet:
    1. A constructor that takes its year, month, day as parameters and another version that takes all of the properties via parameters; namely, year, month, day, hour, minute and second.
    2. A constructor that takes a string in the form “2/12/2011”, or “2-12-2011” or “2-12-2011 5:55:32” and it should parse the string and get its values from the string.
    3. The calendar class should allow usage of AM/PM vs 24 Hour formats for its time representation.
    4. It should use exceptions for handling error and exception cases. For example, cal.setDay(45) should cause an error/exception.
    5. Comment your code and document your fields/methods so people can understand what they do without having to read your code.
    6. It should give methods to advance its fields, such as advancing the year or months with things like this:
    7. cal.add(2,”year”) and the result should be 11/12/2013 13:25:55. Adding negative values should change the date to an earlier date, for example cal.add(-2,”year”) should rewind the date/time to two years before.
    8. It should have a method that counts the number of year, month…etc. between two dates. For example,
    9. If c1 has value of 5/12/2011 and c2 has value of 26/12/2011, c1.count(c2,”day”) should return 11 since there are 11 days from c1 to c2.




    10. Make your SimpleCalendar a super class and have two subclasses extend it one for Hijree calendar and one for Western calendar. First create the simple calendar and get it to work, then refactor it to contain all the common parts and have the subclasses implement the differences.
    11. Make your classes comparable by either implementing java.util.Comparator or java.lang.Comparable, so we can put objects of your classes in a collection and sort it using Collections.sort method.
    12. Have overloaded methods for formatting the calendar, for example
    cal.toString(SimpleCalendar.SHORT) should return 5/12/2011 but cal.toString(SimpleCalendar.LONG) should return 05/12/2011

  2. #2
    sunde887's Avatar
    sunde887 is offline Moderator
    Join Date
    Jan 2011
    Location
    Richmond, Virginia
    Posts
    3,069
    Blog Entries
    3
    Rep Power
    8

    Default Re: new here

    This isn't how this site works. Instead of telling us your project and expect code, try it yourself and tell us what you are stuck with.

  3. #3
    KevinWorkman's Avatar
    KevinWorkman is offline Crazy Cat Lady
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    3,987
    Rep Power
    9

    Default Re: new here

    That is absolutely not how this works. This isn't a homework service, and asking other people to do your work is cheating. That's academic dishonesty, and can result in your failing the assignment, the course, or even getting kicked out of school. We won't have a part in that.

    Read the link in my signature on asking questions the smart way, then ask a specific question and post an SSCCE demonstrating where you're stuck, and we'll go from there.
    How to Ask Questions the Smart Way
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

  4. #4
    mathew is offline Member
    Join Date
    Dec 2011
    Posts
    3
    Rep Power
    0

    Default Re: new here

    come on just say that u can't do it do u know i have 4 project must be down and i dont have time

  5. #5
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    12,091
    Rep Power
    20

    Default Re: new here

    Your workload is hardly our fault now is it?

  6. #6
    KevinWorkman's Avatar
    KevinWorkman is offline Crazy Cat Lady
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    3,987
    Rep Power
    9

    Default Re: new here

    Quote Originally Posted by mathew View Post
    come on just say that u can't do it do u know i have 4 project must be down and i dont have time
    None of what you listed above is difficult, but we aren't just going to do your homework for you. Had you invested the time you spent writing these posts and waiting on our responses into actually doing your work and trying to ask legitimate questions, you'd be done by now. Your choice.
    How to Ask Questions the Smart Way
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

  7. #7
    mathew is offline Member
    Join Date
    Dec 2011
    Posts
    3
    Rep Power
    0

    Default Re: new here

    soooo how can you help me in this??????????

  8. #8
    KevinWorkman's Avatar
    KevinWorkman is offline Crazy Cat Lady
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    3,987
    Rep Power
    9

    Default Re: new here

    Quote Originally Posted by mathew View Post
    soooo how can you help me in this??????????
    Read the link in my signature on asking questions the smart way, then ask a specific question and post an SSCCE demonstrating where you're stuck, and we'll go from there.
    How to Ask Questions the Smart Way
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •