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

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
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.
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education