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
2- write a java program for a Bookstore using 2 classes: class Book, class Customer.
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
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