I am having a lot of trouble working on this program. i am not sure how to make a linked list work with more than just numbers (i only did basic programming) and the book is just terrible, i was wondering if you guys could help me with writing this one. This is the assignment:
Your assignment is to write a program for a computer dating service. Each client gives you his or her name, phone number, and a list of interests. It is your job to maintain lists of men and women using the service and to match up the compatible couples. You will find more details about the assignment, including the inputs, outputs, and deliverables in the course environment.
data about the clients include
number of interests
NEWCLIENT sex name number of interests interests Add the client to the appropriate list by storing the appropriate information. Attempt to match this new client with a member of the opposite sex. A match occurs when the clients have three or more of the same interests. (You only have to find the first match for each new client.) Make sure you then designate both persons as matched, as described in the section on data structures above. Print the name of the new client, the name of his or her match, and both phone numbers. If no match is found, print an appropriate message.
UNMATCH name Unmatch this name with his or her current match by removing name from the matched person.
PRINTMATCH Print a list of all matched pairs.
PRINTFREE Print the names and phone numbers of clients who are not currently matched.
QUIT Stop processing
Echo print all screen input and output on file "Dates.out."
The problem requires you to maintain two lists of clients, one for men and one for women. When a new client is added to the list, he or she is added to the end of the appropriate list.
Each list element must include all the information for one client: name, phone number, number of interests (maximum number is 10), interests, and the name of this client's current match (empty string if not matched).
i have roughly 24 hours to figure this out, i will be attempting to write this myself in this time but i was hoping you guys could give me some advice as to how you would do this. thanks guys.