
Access over 20 million homework documents through the notebank

Get on-demand Q&A homework help from verified tutors

Read 1000s of rich book guides covering popular titles
Please make some change with my code(see attachment) to follow these question below.
**MOST PART OF THESE PROJECT ARE SAME, JUST DO SOME MODIFY**
Task 1, Value: 8 marks
In this task, you are required to provide the definition of a class called Student, which represents a typical (but limited) university student.Each student has a name (which consists of a string of characters – for example: Janet May or Neil Kirby), a unique student identification (ID) number (consisting of a string of exactly seven numerical digits – for example: 1167895 or 8880123) and a course they are enrolled in (consisting of exactly three uppercase alphabetic characters – for example: MIT or BIT).
You are also required to define a class called TestStudent, which will be used to perform a number of test used to among other things, verify the correctness of the Student class.
In order to maintain the uniqueness of the student ID, your program will need to check that any new IDs supplied by the user is not the same as any of the existing student IDs. The program should also ensure that the student IDs and course names conform to the format specified above.
Following area list of specifications of the Student class:
Your TestStudent class should be able to perform the following functions:
Ensure that the program is appropriately documented throughout and thoroughly tested to demonstrate its correct operation.
Task 2, Value: 12 marks
In this task, you are required to provide complete class definitions and then create instances of various classes and use methods to perform various tests.
(a) Define an abstract class called Staff with the following fields and methods:
(b) Define a subclass of the Staff class called FullTimeStaff with the following additional field and methods:
(c) Define a subclass of the Staff class called PartTimeStaff with the following additional field and methods:
(d) Define another subclass of the Staff class called CasualStaff with the following additional field and methods:
(e) Finally, define another class called TestStaff with a main() method to perform necessary testing for the classes defined in the previous sections. In the main method, write the code to: (1) create an ArrayList object to store references to Staff objects; (2) open a text file named staff.txt (available on interact resources), which contains data relating to staff members, create FullTimeStaff, PartTimeStaff and CasualStaff objects based on the first field in each row in the file (“full”, “part”, or “casual”); (3) add these objects to the ArrayList; and (4) test various methods of the objects using loop(s) and methods as necessary, including the code to:
Ensure that the program is appropriately documented throughout and thoroughly tested to demonstrate its correct operation.
Hi, I have attached a compressed .zip file
containing files for both task 1 and task 2. The work h...
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