Question: Need help in completing al 4parts of my java assignment. For my JAVA class. Thank you for your help Assignment 7. There are four parts.
Assignment 7. There are four parts. Please make sure that all parts are implemented Assignment here will be to create an University Attendee class. Requirements: Part 40 points) (5 pts) An University Attendee should have the following fields: o First Name o Last Name o ID number, in the format AA-XXXX o Social Security Number, in the format XXX-XX-XXXx o Start Year o Department code o courseFee (5 pts) Constructors: o Default constructor that initializes the data members to the following values: Employee Name: Sue Allen Start Year: 2017 (5 pts) Parameter Constructor that sets the following fields: First Name, Last Name, Social Security Number, Start Year, Department, Department Code, Course Fee (5 pts) Include mutator(set) methods for the following fields: First Name, Last Name, Social Security Number, Start Year, Department, Department Code, Course Fee (5 pts) Include accessor(get) methods for the following fields: First Name, Last Name, ID number, Social Security Number, Start Year, Department, Department Code, Course Fee. (10 pts) Include the following private method called CreatelDNumberO. The purpose of this method is to generate the ID number. The ID number should be generated randomly, in the format AA-XXXX with the following rules: o The first letter should be generated from the first character of the first name o The second letter should be of the last name o The 4 digits should be generated randomly For example: Employee Name: Sue Allen ID number: SA-8232 Note: This method should be called from both constructors. (5 pts) Include a toString0 method. You can decide the format of the string. generated from the first character Part 2: (25 points) Features: A subclass called UniversityStudent, to be inherited from the University Attendee class. (5 pts) This class will inherit
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
