Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In this assignment you will design and implement a program to administer a simple computer matching system. The matching system maintains two lists of members

image text in transcribed

In this assignment you will design and implement a program to administer a simple computer matching system. The matching system maintains two lists of members (people who wants to use its service): one for male members and the other for female members. For each member the following information will be recorded. 3. Given two member names as parameters, write a function that returns the compatibility score between the members. Let p and q be hobby.vectors for two members. The compatibility score cs between the members is calculated as .Name of the member. A name can have at most 20 characters. No two members can have the same name. The formula represents the so called cosine similarity function and has application in data mining and information retrieval Larger the score, better the compatibility or similarity. . Gender of the member. Male or female Number of hobbies. 1. Given a member name mname and a compatibility score score as parameters, write a function that searches the list of members of opposite gender and returns the index of the first member such that the compatibility score between mname and the member in the list is greater than or equal to score. If no such member is found in the list, the function . A list of hobbies. A member can have at most 5 hobbies, The hobbies can be conveniently represented by an array or vector (hobby vector) of size 5. The presence or absence of a hobby for a member is indicated by a nonzero value or 0, respectively in the corresponding row. For example the vector 5. Write a function that takes a member name mnane, an index ind, and a compatibility score score as parameters, and updates the status of member nname in its list and the member at index ind in the member list of the opposite gender of member aname if the compatibility score is greater than or equal to score and the function returns true. Otherwise the function returns false, 6. Write a function that takes the name of a member as parameter and updates her/his and her/his partner's (if any) status to single. (In other words, the pair just broke up!) represents a hobby vector for some meber It ndicates that the member has three hobb first (weight 5, second (weight 2, and fourth (weight 3). The weight is a real number between 1 and 5 inclusive and it indicates the relative importance of a hobby. For example, in the hobby vector given above, the first hobby is weighted much 7. Write a function that takes the name of a member as parameter and deletes the member from its list. The function must make sure that if the member to be deleted is matched then the status of the partner of the member is changed to single. What to submit match.h, respectively, that meets the given specification. higher than the other two. . Status. The status of a member is if the member is single. If a member has a partner of opposite gender, the status of that member is the index of her/his partner in the member list in which the partner is located. If two members are partners than we 1. Write the definitions for C++ classes Menber and Match in text files named member h and say that they are matched Suppose, member A at index 3 in its member list has status value of 5. It implies that member A is matched with member B at index 5 in its member list and the status value of B is 3. 2. Implement the classes Member and Match in the corresponding.cc files. Thus, members A and B are matched with each other 3. Write a test program in a file named test.match.cc to test the member functions of Define a class called Member that can represent a member with the information as specified. You need to decide and justify the operations and data members to be used for class Member Define a class called Match that contains two lists of members of opposite gender as ex plained. Each list can hold an arbitrary mber of members andcan grow or shrink dynamically, dating service. You should write function(s) in this file to read member information from user interactively and build the two lists. Each of your list should have at least 10 members. Use a dynamic array type for lists. Class Match needs to detine the following operations. 1. Given a name and gender as parameters, write a function that returns the list index if the function returns r name exists in the appropriate member list. Othe 2. Given necessary information about a member as parameters, write a function that inserts the member at the end of the appropriate list if the name does not exist in ths The function returns the index of the member in the list. In this assignment you will design and implement a program to administer a simple computer matching system. The matching system maintains two lists of members (people who wants to use its service): one for male members and the other for female members. For each member the following information will be recorded. 3. Given two member names as parameters, write a function that returns the compatibility score between the members. Let p and q be hobby.vectors for two members. The compatibility score cs between the members is calculated as .Name of the member. A name can have at most 20 characters. No two members can have the same name. The formula represents the so called cosine similarity function and has application in data mining and information retrieval Larger the score, better the compatibility or similarity. . Gender of the member. Male or female Number of hobbies. 1. Given a member name mname and a compatibility score score as parameters, write a function that searches the list of members of opposite gender and returns the index of the first member such that the compatibility score between mname and the member in the list is greater than or equal to score. If no such member is found in the list, the function . A list of hobbies. A member can have at most 5 hobbies, The hobbies can be conveniently represented by an array or vector (hobby vector) of size 5. The presence or absence of a hobby for a member is indicated by a nonzero value or 0, respectively in the corresponding row. For example the vector 5. Write a function that takes a member name mnane, an index ind, and a compatibility score score as parameters, and updates the status of member nname in its list and the member at index ind in the member list of the opposite gender of member aname if the compatibility score is greater than or equal to score and the function returns true. Otherwise the function returns false, 6. Write a function that takes the name of a member as parameter and updates her/his and her/his partner's (if any) status to single. (In other words, the pair just broke up!) represents a hobby vector for some meber It ndicates that the member has three hobb first (weight 5, second (weight 2, and fourth (weight 3). The weight is a real number between 1 and 5 inclusive and it indicates the relative importance of a hobby. For example, in the hobby vector given above, the first hobby is weighted much 7. Write a function that takes the name of a member as parameter and deletes the member from its list. The function must make sure that if the member to be deleted is matched then the status of the partner of the member is changed to single. What to submit match.h, respectively, that meets the given specification. higher than the other two. . Status. The status of a member is if the member is single. If a member has a partner of opposite gender, the status of that member is the index of her/his partner in the member list in which the partner is located. If two members are partners than we 1. Write the definitions for C++ classes Menber and Match in text files named member h and say that they are matched Suppose, member A at index 3 in its member list has status value of 5. It implies that member A is matched with member B at index 5 in its member list and the status value of B is 3. 2. Implement the classes Member and Match in the corresponding.cc files. Thus, members A and B are matched with each other 3. Write a test program in a file named test.match.cc to test the member functions of Define a class called Member that can represent a member with the information as specified. You need to decide and justify the operations and data members to be used for class Member Define a class called Match that contains two lists of members of opposite gender as ex plained. Each list can hold an arbitrary mber of members andcan grow or shrink dynamically, dating service. You should write function(s) in this file to read member information from user interactively and build the two lists. Each of your list should have at least 10 members. Use a dynamic array type for lists. Class Match needs to detine the following operations. 1. Given a name and gender as parameters, write a function that returns the list index if the function returns r name exists in the appropriate member list. Othe 2. Given necessary information about a member as parameters, write a function that inserts the member at the end of the appropriate list if the name does not exist in ths The function returns the index of the member in the list

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Essentials of Database Management

Authors: Jeffrey A. Hoffer, Heikki Topi, Ramesh Venkataraman

1st edition

133405680, 9780133547702 , 978-0133405682

More Books

Students also viewed these Databases questions

Question

1. Differentiate between high and low culture.

Answered: 1 week ago

Question

What are Decision Trees?

Answered: 1 week ago

Question

What is meant by the Term Glass Ceiling?

Answered: 1 week ago