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

  List comprehension to return a list of all the numbers

Write a higher order function list To that takes a function f and a number n and uses list comprehension to return a list of all the numbers from 1 to n for which the function fevaluates to True.

  Create new program which prompts user for numbers

Create a new program whihc prompts a user for numbers and determines total revenue using following formula: Total Revenue = Price * Quantity.

  Write program prompts to enter three sides of triangle

Write a program which prompts the user to enter three sides of a triangle and your program will display the three sides and its category of either equilateral, isosceles or all unequal.

  Creating class savingsaccount using static variable

Create class SavingsAccount. Use static variable annualInterestRate to store annual interest rate for all account holders.

  Write a program to prints the sum of all elements with an

write a program to prints the sum of all elements with an even index and all elements with an odd index of the

  Write program which prompts user for interger value

Write a program which prompts user for interger value in range 0 to 32,767 and then prints infividual digits of numbers on line with three spaces between digits.

  Determine the output of the given program what will happen

question what is the output of the following program?class exception2 public static void mainstring args

  Design a class named rectangle to represent a rectangle

(The Rectangle class ) Following the example of the Circle, design a class named Rectangle to represent a rectangle. The class contains: Two double data fields named width and height that specify the width and height of the rectangle. The defa..

  Design a program that accepts a players team number

The Midville Park District maintains five soccer teams, as shown in the table. Design a program that accepts a player's team number and displays the player's team name

  Create logic for program to enter each household size

Create logic for a program that allows a user to enter each household size and find out the mean and median household size in Marengo.

  Write a program learn multiplication

Write a program which will help the elementary school student learn multiplication. Use Random object to produce two positive one-digit integers.

  Program to display only unique values which user entered

Program to display only the unique values which the user entered. Give for the "worst case" in which all 20 numbers are different. use smallest possible array to solve this problem.

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