27a_Assignment_7

27a_Assignment_7 - Assignment 7 Computer Dating Select one...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Assignment 7 - Computer Dating Select one option from the four below. All options are worth the same number of points. The more advanced options are provided for students who find the basic ones too easy and want more of a challenge. Make sure you have read and understand the Modules Information About Programming Assignments and Style Rules for Assignments before submitting this assignment. Hand in only one program, please. OPTION A (Basic): A Computer Match-Maker Create a class called DateProfile that has the following private members: gender - a char , the gender of the applicant ('M' or 'F'). search_gender - 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 (F, 7, 4, "Hugh Heffner") then the applicant's name is "Hugh Heffner", 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 (at a minimum): Accessors and Mutators for each field (instance member). For example: char GetGender() and boolean SetGender(char gdr) . Constructors that take no parameters (default) and all 5 parameters. double FitValue(DateProfile partner)
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 3

27a_Assignment_7 - Assignment 7 Computer Dating Select one...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online