Marriage_Agency/ASSIGNMENT_Marriage agency.pdf Assignment S. Gurses A marriage agency keeps a file with all their clients. Each day they get phone calls from new clients wishing to subscribe. Since...

Hello,
I have just heard that because I failed my last assignment, I have to do a penalty assignment. I really don't have time for it as it is so last minute so I am really hoping you guys can help out! The deadline is tomorrow: Saturday December 12th 23:59 CET (Berlin). Really hoping this works out, as I have never made use of your services.
See attached file for the assignment as PDF and two input files.
Kind regards,


Marriage_Agency/ASSIGNMENT_Marriage agency.pdf Assignment S. Gurses A marriage agency keeps a file with all their clients. Each day they get phone calls from new clients wishing to subscribe. Since during the day the computer is occupied with more pressing matters (like gaming), the new data is not saved in the computer system straight away. However this new data is collected in a file. At the end of the day the program (which you will be writing) should process the two files. The program should send a letter to possible suitable partners. Once that has pannened, the file with the new clients will be added to the client registry. This will be the new input file for the next day. The file with the data from the clients is started with the minimal amount of clients that is on the file. This is followed with one line per client, containing the following: - Name - Address - Gender - Age (positive number) - Interests (a string existing out of one or more letters b, c, f, k, m, p, r, s, t) The information is separated by the character ’|’. The possible interests are: - Books - Computers - Movies (’f’ from the German word: ’Film’) - Art (’k’ from the German word: ’Kunst’) - Music - Politics - Traveling (’r’ from the German word: ’Reiszen’) - Sports - Theatre Each time indicated by the first letter (if it is not indicated by the first letter, it is explicitly mentioned which letter to use). This file only contains clients which are looking for a partner of the opposite sex (clients looking for a partner of the same sex are for obvious reasons put in a different file). The clients are to be found in the file existing_clients_marriage_agency. This file should be read. This file starts off with the maximum number of clients that will fit in the file. This number is big enough to contain all new clients. Example: Every now and then new clients show up which are looking for a suitable life companion. These new clients are in the file ​clients_marriage_agency​. This file contains for a start the maximal number of partners (from now on referred to as n) a client can be joined with. The following has to happen: - From the client file a list of maximal n suitable partners is selected for the new client - When there are more than n suitable partners, the ​n​ most suitable partners should be chosen (see below) - The new client should get a note with the name and address of the (​n​ or less) found potential partners - When there is no suitable partner, the new client should be added to the list (not the file!) with clients and the client will get a letter with the message that he/she will get further notice once an ideal life companion is found Two people are possible partners when they: - Are of different sex - Differ no more than 10 years in age - They need to have at least one interest in common To decide how well the two possible partners fit, the next function is used: __MACOSX/Marriage_Agency/._ASSIGNMENT_Marriage agency.pdf Marriage_Agency/marriage-agency-customers.txt 3 Jan Klaassen|Den Helder|m|mrb|34 Jan Kremer|New York|m|bkr|45 Geth Saaikema|Groningen|m||49 Corazon Aquino|Manilla|v|p|55 De Hulk|Comic City|m|ks|46 Miss World|Rome|v|fkmr|21 Supervrouw|New York, USA|v|k|36 Dries van Agt|Japan|m|kc|65 __MACOSX/Marriage_Agency/._marriage-agency-customers.txt Marriage_Agency/marriage-agency-input.txt 50 Oma Duck|Boerderij,Duckstad|v|bm|77 Donald Duck|Acacialaan 12,Duckstad|m|sf|37 Guus Geluk|Vindersstraat 11,Duckstad|m|kbpft|37 Kapitein Haak| p/o Vliegende Hollander|m|r|52 Willy Wortel|Ideeenlaan 100,Duckstad|m|ckmbtp|39 Katrien Duck|Ganzendreef 8,Duckstad|v|bft|35 Mickey Mouse|Zijstraat 19,Duckstad|m|btprs|28 Minney Mouse|Zijstraat 21,Duckstad|v|mbpf|26 Dagobert Duck|Kasteellaan 1,Duckstad|m|cps|40 Joe Dalton|Hoofdstraat 20,Killer's Gulch|m|fbps|38 Ma Dalton|Hoofdstraat 20,Killer's Gulch|v|k|75 Calamity Jane|Paardesteeg 7,New York|v|ps|35 Lucky Luke|Stationsstraat 5,Washington|m|mbtp|32 O.B. Bommel|Bommelstein, Rommeldam|m|rbpk|53 juffrouw Doddel|Boslaan 12,Rommeldam|v|mtb|45 Tom Poes|Veldweg 43,Rommeldam|m|crs|24 Betty Boop|Broadway, New York|v|mftk|23 Popeye|Spinaziestraat 40, Havenstad|m|srm|32 Olive Oil|Spinaziestraat 38, Havenstad|v|fbmk|27 Tante Sidonia|Vandersteenstr. 10, Antwerpen|v|prmc|40 __MACOSX/Marriage_Agency/._marriage-agency-input.txt
Dec 11, 2021
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here