Manegment Information system assignment

FratBro23
Category:
Programming
Price: $35 USD

Question description


will be a library assignment day for extra credit worth 10 points. 

Assignment details:

Create a class that models something (employee, staff, car, etc. The class must have proper name, at least three attributes, getter and setter methods, a tell about self method, and at least one custom method, such as the speak method shown in the classroom. Then create a tester class that creates three objects based on the class you created earlier, and call the tell about self method and the custom method on each of the three objects. Please provide printouts for the class, the tester class and the output. Due date is April 23 at the beginning of our class meeting. You can use the Student and StudentTester classes as guides (they are available on blackboard).

If you were absent today, please email me your choice of the Java class  before you begin to avoid duplication. secor players is my choise

tudentTester

Posted by Ayman Abuhamdieh at Tuesday, April 2, 2013 10:46:54 AM EDT

package marina2;

public class StudentTester {

    public static void main(String[] args) {

        Student student1, student2, student3;

        student1 = new Student(991123456, "Jane", "1990");

        student2 = new Student(991654321, "Sam", "1999");

        student3 = new Student(991987456, "Tom", "2000");

        System.out.println(student1.tellAboutSelf());

        System.out.println(student2.tellAboutSelf());

        System.out.println(student3.tellAboutSelf());

    }

}

Student

Posted by Ayman Abuhamdieh at Tuesday, April 2, 2013 10:46:33 AM EDT

package marina2;

public class Student {

    private int ID;

    private String name;

    private String DOB;

    public Student(int newID, String newName, String newDOB) {

        setID(newID);

        setName(newName);

        setDOB(newDOB);

    } 

    public int getID()

    { return ID; }

    public String getName()

    { return name; }

    public String getDOB()

    { return DOB; }

    public void setID(int anID)

    { ID = anID; }

    public void setName(String aName)

    { name = aName; }

    public void setDOB(String aDOB)

    { DOB = aDOB; }

    public String tellAboutSelf() {

        String info;

        info = "Student ID = " 

                + getID() + ", name ="

                + getName() + ", DOB = "

                + getDOB();

        return info;

    }

}


Studypool has helped 1,244,100 students
Ask your homework questions. Receive quality answers!

Type your question here (or upload an image)

1827 tutors are online

Related Programming questions

05/04/2013
04/19/2013
04/12/2013
04/11/2013
04/10/2013
04/04/2013
04/01/2013

Brown University





1271 Tutors

California Institute of Technology




2131 Tutors

Carnegie Mellon University




982 Tutors

Columbia University





1256 Tutors

Dartmouth University





2113 Tutors

Emory University





2279 Tutors

Harvard University





599 Tutors

Massachusetts Institute of Technology



2319 Tutors

New York University





1645 Tutors

Notre Dam University





1911 Tutors

Oklahoma University





2122 Tutors

Pennsylvania State University





932 Tutors

Princeton University





1211 Tutors

Stanford University





983 Tutors

University of California





1282 Tutors

Oxford University





123 Tutors

Yale University





2325 Tutors