Answered step by step
Verified Expert Solution
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 Labbtxt 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 K if they are single or K if they are married.
If the customer lives in California CA the income amount is K for single and K for married.
Consider customers over the age of only.
Print the following message for all the customers that meet the above guideline.
PrintReach 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.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started