Java Assignment 8 - Computer Dating

Feb 3rd, 2012
Studypool Tutor
Price: $15 USD

Tutor description

Class DateProfile Create a class called DateProfile that has the following private instance members: gender - a char, the gender of the applicant ('M' or 'F'). searchGender - a char, the gender of desired partner ('M' or 'F'). This is not the gender of the applicant, but of the applicant's requested partner. romance - an int from 1 to 10, indicating the importance of romance to the applicant. finance - an int from 1 to 10, indicating the importance of finance to the applicant. name - a String indicating the full name of the applicant. Each object in the DateProfile class represents an applicant's profile. If the object is ('M', 'F', 7, 4, "Hugh Hefner") then the applicant's name is "Hugh Hefner", he's looking for a date who is Female, with romance being somewhat important (7) and finance being less important (4). You should supply all of the following member functions of class DateProfile (at a minimum): Accessors and Mutators for each field (instance member). For example: char

Word Count: 496
Showing Page: 1/3
/** * Created by e7006722 on 16/07/2014. */public class Foothill { public static void main(String args[]) { DateProfile applicant1 = new DateProfile('M', 'F', 7, 4, "Hugh Hefner"); DateProfile applicant2 = new DateProfile('F', 'M', 6, 4, "Carmen Miranda"); DateProfile applicant3 = new DateProfile('M', 'F', 5, 4, "Brad Pitt"); DateProfile applicant4 = new DateProfile('F', 'M', 4, 4, "Mary Lynn"); System.out.println(applicant1.getName()); System.out.println("\t"+ applicant2.getName()+ " fit: " + applicant1.fitValue(applicant2)); System.out.println("\t"+ applicant3.getName()+ " fit: " + applicant1.fitValue(applicant3)); System.out.println("\t"+ applicant4.getName()+ " fit: " + applicant1.fitValue(applicant4)); System.out.println("\t"+ applicant1.getName()+ " fit: " + applicant1.fitValue(ap

Review from student

Studypool Student
" Excellent work as always thanks so much "
Ask your homework questions. Receive quality answers!

Type your question here (or upload an image)

1830 tutors are online

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