Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Imagine that you are a vacation sell agent and you are trying to find customers. To do this you have obtained a text file named

Imagine that you are a vacation sell agent and you are trying to find customers. To do this you have
obtained a text file named Lab9b.txt, which contains information about possible customers. Each line of the
file contains the following information in order:
FirstName, LastName, Age, household Income, Married, and State
Use your C skills to read the file and store this data in an array of structures (name this structure person).
Then determine who are your best possible customers using the constraints:
The customer must have an income of 60 K if they are single or 100 K if they are married.
If the customer lives in California (CA), the income amount is 80 K for single and 150 K for married.
Consider customers over the age of 21 only.
Print the following message for all the customers that meet the above guideline.
Print(Reach out to FirstName Last Name from State and Age") where FirstName, LastName, and Age are
information from the person structure.
Write in C and show code please.
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions