Results 1 to 8 of 8
  1. #1
    omar_6630 Guest

    Default Guys please i need help !!! :d

    guys this is a project that i know nothing about , so can anyone help ????

    Assignment 1 :

    Create a java class called Date, that includes three pieces of information as instance variables a month(type
    int), a day (type int) and a year (type int). Your class should have a constructor that initializes the three instance variables
    and assumes that the values provided are correct.
    Provide a set and a get method for each instance variable. Provide a method displayDate that displays the month, day
    and year separated by forward slashes (/). Write a test application named DateTest that demonstrates class Date's
    capabilities.

    2- write a java program for a Bookstore using 2 classes: class Book, class Customer.

    Class Book:
    􀂾 Each object of class Book can hold the following information about a book: price and title.
    􀂾 Include the accessor methods for instance variables.
    􀂾 Instance variables initialization is done using the constructor

    Class Customer
    􀂾 Object of Customer represents a customer of a book store who can purchase books
    􀂾 Object of Customer can hold the name of person, member ID and amount spent.
    􀂾 name & member ID variables are initialized using the constructor
    􀂾 Include the accessor methods for instance variables
    􀂾 Method purchaseBook receives object of type Book, use this object to get the price of the book and increment
    the variable amount spent with this price

  2. #2
    m00nchile is offline Senior Member
    Join Date
    Feb 2010
    Location
    Ljubljana, Slovenia
    Posts
    470
    Rep Power
    5

    Default

    New Java Student in dire need of help
    Classmates or duplicate post?
    Ever seen a dog chase its tail? Now that's an infinite loop.

  3. #3
    omar_6630 Guest

    Default

    what is the difference ?

  4. #4
    pbrockway2 is offline Moderator
    Join Date
    Feb 2009
    Location
    New Zealand
    Posts
    4,585
    Rep Power
    12

    Default

    so can anyone help ?

    You're not giving us much to go on!

    Do you understand what the first part, asking you to create a Date class, means? If not, what part of those four sentences are you having trouble with?

    If you do understand that part of the assignment, what code have you written? Does it compile? What happens when you run it?

    ---------------------------

    This is not a code writing service - and I'm sure you didn't expect it would be. If you have a technical problem many here would be happy to help: but you had better get specific about what that problem is.

  5. #5
    pbrockway2 is offline Moderator
    Join Date
    Feb 2009
    Location
    New Zealand
    Posts
    4,585
    Rep Power
    12

    Default

    Quote Originally Posted by omar_6630 View Post
    what is the difference ?

    "classmates" would be if you and Leonspade were both in the same class, were given the same assignment, and were asking about it in a similar way.

    "duplicate post" would be if you had posted the same problem twice.

    -------------------------

    Either way you have still to ask a precise question. That is what you should be concentrating on.

  6. #6
    omar_6630 Guest

    Default

    pbrockway2 seriously shut da F**K up okay

  7. #7
    pbrockway2 is offline Moderator
    Join Date
    Feb 2009
    Location
    New Zealand
    Posts
    4,585
    Rep Power
    12

    Default

    pbrockway2 seriously shut da F**K up okay

    Missing question mark.

    And the answer is "no".

    Are there a whole class full of you? ("u in rm ... guy in front speek hard stuf"). If so, ones pity for the teacher is moderated by the fact that he'll have few assignments turned in that require any actual effort to mark.

    (Sorry FuB and other moderators. I won't respond to this cretin again.)

  8. #8
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,315
    Blog Entries
    1
    Rep Power
    26

Similar Threads

  1. Help guys
    By Taher in forum New To Java
    Replies: 3
    Last Post: 08-03-2010, 03:44 PM
  2. What's up guys
    By zuriick in forum New To Java
    Replies: 8
    Last Post: 02-06-2009, 05:39 AM
  3. Hello Guys...
    By balaram.bocha in forum Introductions
    Replies: 0
    Last Post: 02-03-2009, 07:11 PM
  4. Hello Guys!
    By jeraldjamescapao in forum New To Java
    Replies: 3
    Last Post: 11-23-2008, 08:39 AM
  5. Hello Guys!
    By jeraldjamescapao in forum Advanced Java
    Replies: 1
    Last Post: 11-22-2008, 08:42 PM

Posting Permissions

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