Browse over 20 million
homework answers & study documents

Computer Science

Java Assignment 8 - Computer Dating

Type

Lab

Rating

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(applicant1));
System.out.println(applicant2.getName());
System.out.println("\t"+ applicant1.getName()+ " fit: " +
applicant1.fitValue(applicant1));
System.out.println("\t"+ applicant3.getName()+ " fit: " +
applicant1.fitValue(applicant3));
System.out.println("\t"+ applicant4.getName()+ " fit: " +
applicant1.fitValue(applicant4));
System.out.println("\t"+ applicant2.getName()+ " fit: " +
applicant1.fitValue(applicant2));
System.out.println(applicant3.getName());
System.out.println("\t"+ applicant4.getName()+ " fit: " +
applicant1.fitValue(applicant4));
System.out.println("\t"+ applicant2.getName()+ " fit: " +
applicant1.fitValue(applicant2));
System.out.println("\t"+ applicant1.getName()+ " fit: " +
applicant1.fitValue(applicant1));
System.out.println("\t"+ applicant3.getName()+ " fit: " +
applicant1.fitValue(applicant3));
System.out.println(applicant4.getName());
System.out.println("\t"+ applicant1.getName()+ " fit: " +
applicant1.fitValue(applicant1));
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));
}
}
class DateProfile{
private char gender;
private char searchGender;
private int romance;
private int finance;
private String name;
public char getGender() {

Sign up to view the full document!

lock_open Sign Up

Sign up to view the full document!

lock_open Sign Up

Sign up to view the full document!

lock_open Sign Up

Anonymous
Really great stuff, couldn't ask for more. The assignment was done with remarkable detail.

Anonymous
Solid work, thanks.

Anonymous
Goes above and beyond expectations !

Studypool
4.7
Trustpilot
4.5
Sitejabber
4.4