{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

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

Info icon This 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 instance 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 bool SetGender(char gdr) . Constructors that take no parameters (default) and all 5 parameters.
Image of page 1

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

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

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern