CollegeApplicant Class Write a class encapsulating the concept of College Applicant. Use the class diagram above as well as the specific requirements below to develop your class: Class Members name - The name of the college applicant. college - The name of the college. CollegeApplicant() - Initializes an instance of the CollegeApplicant class where the name and college are set to "unknown". CollegeApplicant(String, String - Initializes an instance of the CollegeApplicant class where the name and college are set to the specified values. getName() : String - Returns the college applicant's name. setName(String) : void - Sets the college applicant's name. getCollege() : String - Returns the name of the college. setCollege(String) : void - Sets the name of the college. registerForProgram(String) : String - Returns a String representing the registration of a program. toString() : String - Returns a String representation of the class. toString() Format: ======================= College Applicant ======================= Name: {name} College: {college} Sample: ======================= College Applicant ======================= Name: Andrew Jones College: BIT College GraduateApplicant Class Write a class encapsulating the concept of a Graduate Applicant. Use the class diagram above as well as the specific requirements below to develop your class: Class Members collegeOfOrigin - The name of the college where the graduate applicant received their degree. GraduateApplicant(String, String, String) - Initializes an instance of the GraduateApplicant class with a specified name, college name, and college of origin. getCollegeOfOrigin() : String - Returns the college of origin. setCollegeOfOrigin(String) : void - Sets the college of origin. isInside() : boolean - Returns true when the college name and the college of origin are the same (case should not be a factor); otherwise false. registerForProgram(String) : String - Returns the String "{college_of_origin} > college_name - program_name". Example: "Red River College > Red River College - Business Administration". toString() : String - Returns a String representation of the class. Format: ======================= College Applicant ======================= Name: {name} College: {college} Origin: {collegeOfOrigin} Sample: ======================= College Applicant ======================= Name: Andrew Jones College: BIT College Origin: Yale UndergraduateApplicant Class Write a class encapsulating the concept of a Undergraduate Applicant. Use the class diagram above as well as the specific requirements below to develop your class: Class Members standardAptitudeTestScore - The score achieved on the standard aptitude test. Allowable values: 0.0 - 500.0 inclusive. If this field is set outside the allowable range, set the state to 0 (zero). gradePointAverage - The applicants grade point average. Allowable values: 0.00 - 4.50 inclusive. If this field is set outside the allowable range, set the state to 0 (zero). UndergraduateApplicant(String, String, double, double) - Initializes an instance of the UndergraduateApplicant class with the specified applicant name, college name, standard aptitude test score and grade point average. getStandardAptitudeTestScore() : double - Returns the standard aptitude test score. setStandardAptitudeTestScore(double) : void - Sets the standard aptitude test score. getGradePointAverage() : double - Returns the grade point average. setGradePointAverage(double) : void - Sets the grade point average. registerForProgram(String) : String - Returns the String "college_name - program_name [aptitude_test_score]". Example: "Red River College - Business Information Technology [465.3]". toString() : String - Returns a String representation of the class. toString() Format: ======================= College Applicant ======================= Name: {name} College: {college} SAT Score: {standardAptitudeTest} GPA: {gradePointAverage} Formatting Requirements The standard aptitude test score is formatted to one decimal place. The grade point average is formatted to two decimal places. Sample: ======================= College Applicant ======================= Name: Andrew Jones College: BIT College SAT Score: 465.3 GPA: 4.22

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter3: Using Methods, Classes, And Objects
Section: Chapter Questions
Problem 16RQ
icon
Related questions
Question

Folder Structure

Your project will contain two sub-directories:

  1. library
  2. test

In the library directory, create the classes in the class diagram below. In the test directory, create the test applications.

Class Diagram

 

CollegeApplicant Class

Write a class encapsulating the concept of College Applicant. Use the class diagram above as well as the specific requirements below to develop your class:

Class Members

  • name - The name of the college applicant.
  • college - The name of the college.
  • CollegeApplicant() - Initializes an instance of the CollegeApplicant class where the name and college are set to "unknown".
  • CollegeApplicant(String, String - Initializes an instance of the CollegeApplicant class where the name and college are set to the specified values.
  • getName() : String - Returns the college applicant's name.
  • setName(String) : void - Sets the college applicant's name.
  • getCollege() : String - Returns the name of the college.
  • setCollege(String) : void - Sets the name of the college.
  • registerForProgram(String) : String - Returns a String representing the registration of a program.
  • toString() : String - Returns a String representation of the class.

toString() Format:

======================= College Applicant ======================= Name: {name} College: {college}

Sample:

======================= College Applicant ======================= Name: Andrew Jones College: BIT College

GraduateApplicant Class

Write a class encapsulating the concept of a Graduate Applicant. Use the class diagram above as well as the specific requirements below to develop your class:

Class Members

  • collegeOfOrigin - The name of the college where the graduate applicant received their degree.
  • GraduateApplicant(String, String, String) - Initializes an instance of the GraduateApplicant class with a specified name, college name, and college of origin.
  • getCollegeOfOrigin() : String - Returns the college of origin.
  • setCollegeOfOrigin(String) : void - Sets the college of origin.
  • isInside() : boolean - Returns true when the college name and the college of origin are the same (case should not be a factor); otherwise false.
  • registerForProgram(String) : String - Returns the String "{college_of_origin} > college_name - program_name". Example: "Red River College > Red River College - Business Administration".
  • toString() : String - Returns a String representation of the class.

Format:

======================= College Applicant ======================= Name: {name} College: {college} Origin: {collegeOfOrigin}

Sample:

======================= College Applicant ======================= Name: Andrew Jones College: BIT College Origin: Yale

UndergraduateApplicant Class

Write a class encapsulating the concept of a Undergraduate Applicant. Use the class diagram above as well as the specific requirements below to develop your class:

Class Members

  • standardAptitudeTestScore - The score achieved on the standard aptitude test. Allowable values: 0.0 - 500.0 inclusive. If this field is set outside the allowable range, set the state to 0 (zero).
  • gradePointAverage - The applicants grade point average. Allowable values: 0.00 - 4.50 inclusive. If this field is set outside the allowable range, set the state to 0 (zero).
  • UndergraduateApplicant(String, String, double, double) - Initializes an instance of the UndergraduateApplicant class with the specified applicant name, college name, standard aptitude test score and grade point average.
  • getStandardAptitudeTestScore() : double - Returns the standard aptitude test score.
  • setStandardAptitudeTestScore(double) : void - Sets the standard aptitude test score.
  • getGradePointAverage() : double - Returns the grade point average.
  • setGradePointAverage(double) : void - Sets the grade point average.
  • registerForProgram(String) : String - Returns the String "college_name - program_name [aptitude_test_score]". Example: "Red River College - Business Information Technology [465.3]".
  • toString() : String - Returns a String representation of the class.

toString() Format:

======================= College Applicant ======================= Name: {name} College: {college} SAT Score: {standardAptitudeTest} GPA: {gradePointAverage}

Formatting Requirements

  • The standard aptitude test score is formatted to one decimal place.
  • The grade point average is formatted to two decimal places.

Sample:

======================= College Applicant ======================= Name: Andrew Jones College: BIT College SAT Score: 465.3 GPA: 4.22

Documentation

Using the javadoc program, publish the documentation for all library classes.

 

 

Directory Structure

1008_firstname_lastname_assignment_7.zip
├── library
│   └── docs
│   └── CollegeApplicant.java
│   └── GraduateApplicant.java
│   └── UndergraduateApplicant.java

 
Class Diagram
Graduate Applicant
-name: String
-college String
-standardAptitude TestScore: double
-gradePointAverage: double
CollegeApplicant
+CollegeApplicant()
+CollegeApplicant(name: String, college : String)
+getName(): String
+setName(name: String): void
+getCollege(): String
+setCollege(college String): void
+registerForProgram(program: String): String
+toString(): String
-college OfOrigin: String
+Graduate Applicant(name: String, college String, college OfOrigin: String)
+getCollegeOfOrigin(): String
+setCollege OfOrigin(college Of Origin: String) : void
+islnside(): boolean
+registerForProgram (program: String): String
+toString0 String
Undergraduate Applicant
+UndergraduateApplicant(name: String, college String, standardAptitude Test: double, grade PointAverage: double)
+getStandardAptitude TestScore(): double
+setStandard Aptitude TestScore(score: double): void
+getGrade PointAverage(): double
+setGrade PointAverage (gradePointAverage: double): void
+registerForProgram (program: String): String
+toString(): String
Transcribed Image Text:Class Diagram Graduate Applicant -name: String -college String -standardAptitude TestScore: double -gradePointAverage: double CollegeApplicant +CollegeApplicant() +CollegeApplicant(name: String, college : String) +getName(): String +setName(name: String): void +getCollege(): String +setCollege(college String): void +registerForProgram(program: String): String +toString(): String -college OfOrigin: String +Graduate Applicant(name: String, college String, college OfOrigin: String) +getCollegeOfOrigin(): String +setCollege OfOrigin(college Of Origin: String) : void +islnside(): boolean +registerForProgram (program: String): String +toString0 String Undergraduate Applicant +UndergraduateApplicant(name: String, college String, standardAptitude Test: double, grade PointAverage: double) +getStandardAptitude TestScore(): double +setStandard Aptitude TestScore(score: double): void +getGrade PointAverage(): double +setGrade PointAverage (gradePointAverage: double): void +registerForProgram (program: String): String +toString(): String
Expert Solution
steps

Step by step

Solved in 3 steps with 2 images

Blurred answer
Knowledge Booster
Unreferenced Objects
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT