Solution Found!

Write a program that manipulates three database files. The first file contains thenames

Chapter 8, Problem P8.24

(choose chapter or problem)

Get Unlimited Answers
QUESTION:

Write a program that manipulates three database files. The first file contains thenames and telephone numbers of a group of people. The second file contains thenames and Social Security numbers of a group of people. The third file contains theSocial Security numbers and annual income of a group of people. The groups ofpeople should overlap but need not be completely identical. Your program shouldask the user for a telephone number and then print the name, Social Security number,and annual income, if it can determine that information.

Questions & Answers

QUESTION:

Write a program that manipulates three database files. The first file contains thenames and telephone numbers of a group of people. The second file contains thenames and Social Security numbers of a group of people. The third file contains theSocial Security numbers and annual income of a group of people. The groups ofpeople should overlap but need not be completely identical. Your program shouldask the user for a telephone number and then print the name, Social Security number,and annual income, if it can determine that information.

ANSWER:

Step 1 of 3

The program should ask the user for the telephone number. Then, create a file stream pointer to the first file and search for the entered telephone number. Display the corresponding name to the telephone number. Then using this name, search for the corresponding Social Security Number in the second file. At last, using Social Security Number, search for the income.

 

Add to cart


Study Tools You Might Need

Not The Solution You Need? Search for Your Answer Here:

×

Login

Login or Sign up for access to all of our study tools and educational content!

Forgot password?
Register Now

×

Register

Sign up for access to all content on our site!

Or login if you already have an account

×

Reset password

If you have an active account we’ll send you an e-mail for password recovery

Or login if you have your password back