Program for a computer dating service

Assignment Help Programming Languages
Reference no: EM13897500

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.

Input

Data about current clients should be on file "Clients.mf". For each current client, the file contains the following information:

Sex 1                       character, 'M' or 'F'
Name                        up to 20 characters, followed by comma
Phone Number            8 characters
Number of Interests    an integer
List of Interests         10 characters each separated by commas with a period after the final interest.
Match                      up to 20 characters, followed by end-of-line.

From the keyboard: The user may enter on of the following commands.

Output

Echo print all screen input and output on file "Dates.out."

Processing

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 this name with his or her current match by removing <name> from the matched person.

Print a list of all matched pairs.

Print the names and phone numbers of clients who are not currently matched.
Stop processing

Output

Echo print all screen input and output on file "Dates.out."

Data Structures

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).

Reference no: EM13897500

Questions Cloud

The opportunities in the clinical versus management tracts : Compare the opportunities in the clinical versus management tracts
What is garman-kolhagen model of foreign currency option : What is the Garman-Kolhagen model of foreign currency option pricing? What is the delta of an option? Why is it useful? What does it mean for a portfolio of options to be delta neutral?
What happens to a person at death? : What happens to a person at death?
Challenges of creating a healing environment in light : challenges of creating a healing environment in light of the barriers
Program for a computer dating service : Write a program for a computer dating service. Each client gives you his or her name, phone number, and a list of interests.
What is the implied volatility of an option : What is the theta of an option? What is the implied volatility of an option? How does a change in the volatility of the rate of appreciation affect the pricing of foreign currency options?
Discuss the concept of judicial review : Discuss the concept of judicial review
Develop a portfolio that replicates the payoff on one-month : Develop a portfolio that replicates the payoff on a 1-month euro call option with a strike price of $1.25 >:. What is the corresponding price of the euro put option with the same strike price?
Would strong fi donors or stong r acceptors be best choice : Explain the basis for yorn choice being careful to: 1) explicitly indicate the relative energies of the metal and ligand a orbitals and 2) explicrtly indicate the speci{ic ligand orbitalmetal orbital interactions that will influence the relative e..

Reviews

Write a Review

Programming Languages Questions & Answers

  Write a haskell program to calculates a balanced partition

Write a program in Haskell which calculates a balanced partition of N items where each item has a value between 0 and K such that the difference b/w the sum of the values of first partition,

  Create an application to run in the amazon ec2 service

In this project you will create an application to run in the Amazon EC2 service and you will also create a client that can run on local machine and access your application.

  Explain the process to develop a web page locally

Explain the process to develop a Web page locally

  Write functions

These 14 questions covers java class, Array, link list , generic class.

  Programming assignment

If the user wants to read the input from a file, then the output will also go into a different file . If the user wants to read the input interactively, then the output will go to the screen .

  Write a prolog program using swi proglog

Write a Prolog program using swi proglog

  Create a custom application using eclipse

Create a custom Application Using Eclipse Android Development

  Create a application using the mvc architecture

create a application using the MVC architecture. No scripting elements are allowed in JSP pages.

  Develops bespoke solutions for the rubber industry

Develops bespoke solutions for the rubber industry

  Design a program that models the worms behavior

Design a program that models the worm's behavior.

  Writing a class

Build a class for a type called Fraction

  Design a program that assigns seats on an airplane

Write a program that allows an instructor to keep a grade book and also design and implement a program that assigns seats on an airplane.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd