Please help me program this. Thank you! Class DateProfile Create a class called
ID: 3546873 • Letter: P
Question
Please help me program this. Thank you!
Class DateProfile
Create a class called DateProfile that has the following private instance members:
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):
The Client Driver
From your main(), you will instantiate a total of four DateProfile objects, applicant1, ... applicant4manually from literal values in your program, i.e., do not involve the user with run-time input. Then for each of the four applicants, display the fits with the others - including themselves. Do this by showing the name of the applicant, then the names and fit values of all applicants relative to this one applicant. Repeat this list for all four applicants producing 16 comparison figures grouped into four groups of four each. (You will be comparing each applicant to his/herself in each of these four groups. This will serve to check whether the result is correct - it must be either a 1 or a 0 depending on thesearchGender they requested, but never a number between (can you see why?)). Here is part of a sample output:
Make sure all mutators, constructors and other methods that affect private data adequately test for illegal values and, if possible, return a bool that reports the results of this test.
Explanation / Answer
[IMG]http://etudes-ng.fhda.edu/access/content/user/milo21053/Pics%20for%20All%20Classes/15a_Ass7_pic.jpg[/IMG]