Create a constructor to initialize students attributes and


Submit all of your assignments in a zip file.Your zip file must include the .java and .class files as well as a Word document with a screen shot of your program running.

Assignment 1

In this assignment, you are to create a Person class with the following private attributes:

• Last name - type String
• First name - type String
• Social Security Number - type String
• Date of birth - type Date which is a class you create that has the following 3attributes: int day, int month, and int year and its toString() method returns the date in the "day/month/year" format.

Use a constructor to initialize the Person attributes.Encapsulate each of these attributes and test the setters by using them in the constructor to set the attributes.In the Person class override the Object toString() method so that it will return a String with all of a person's information when called.Use your getter methods to implement the toString() method (do not access the Person attributes directly from toString().Test your class by creating a PersonTest class and instantiating 3different students and then using the toString() method to print out all the information on each student.

Your test run should look like the following:

Assignment 2.

In this assignment, you are going to create a subclass of Person called student.The Student class has the following private attributes:

• Student ID - type String.The student ID must be derived using the private method setStudendID() of the Student class.setStudentID() should use the first 2letters of the student's last name (converted to upper case) and the last 4characters of the SSN to derive studentID.

• Course - type String.This is the name of their current class (assume a student can only take 1class).

• Professor - type String.This is the name of their current professor.

Create a constructor to initialize Student's attributes and use setters (you need to encapsulate your attributes).In the constructor, use the setter methods to set the attributes rather than setting them directly. The constructor should take the following arguments: first name, last name, SSN, date of birth, course, and professor.

Your test run should look something like the following:

Assignment 3

In this assignment, you are going to create an interface called Transcripts with 2methods: getGPA() and getTotalCredits().Implement these methods in the Student class you created for Assignment 6-2.

• getGPA()'s return type is double and it returns the value 3.5

• getTotalCredits()'s return type is int and it returns the value 125

Modify the toString() method in Student class to include the student's GPA and total credits.

Request for Solution File

Ask an Expert for Answer!!
Management Information Sys: Create a constructor to initialize students attributes and
Reference No:- TGS01037334

Expected delivery within 24 Hours