Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Write a program that manipulates three database files: phones, socials, and sala

ID: 3644076 • Letter: W

Question

Write a program that manipulates three database files: phones, socials, and salaries. phones contains the names and phone numbers of a group of people. socials contains the names and Social Security numbers of a group of people. salaries contains the Social Security numbers and annual salaries of a group of people.
The groups of people in the files should overlap but need not be completely identical. Your program should ask the user for a telephone number and then print the name, Social Security number, and annual income -- if it can determine that information.

Explanation / Answer

Use three vectors, each of type Record, to store the content of the files: class Record { string key; string data; public: Record(): key(""), data("") {} Record(string k, string d): key(k), data(d) {} string get_key() { return key; } string get_data() { return data; } }; Use the following three files, phones: Kim 213-750-2233 Amanda 909-600-9000 Toni 949-200-5555 Katy 310-123-7654 Jackie 714-323-8790 socials: Toni 123-45-6789 Jackson 438-25-6727 Amanda 987-65-4321 Sophie 100-20-3000 Katy 400-50-6000 salaries: 100-20-3000 50,000.00 400-50-6000 60,000.00 123-45-6789 23,000.00 438-25-6727 55,500.00

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote