Question: Question: Usee C++ to solve the problem in the image below. Make the code as efficient as possible. 5. A file called people.txt contains many

Question: Usee C++ to solve the problem in the image below. Make the code as efficient as possible.

Question: Usee C++ to solve the problem in the image below. Make

5. A file called "people.txt" contains many thousands of lines of data that look just like this: 9911213 Douglas Davies 70 170 NJ 9420117 Cory DeMilt 68 175 NY 19620606 Heironymous McTaggart 72 231 LA 19591106 Ian Williams 74 320 FL 19700620 Dante Shellduck 64 168 CT The data on each line are a person's birth date, their first and last name, their height in inches, their weight in pounds, and the state that they live in 1, write a complete C++ program, even showing the correct #includes, that reads this file and performs the following tasks: 2. Create another file containing the data only for people who live on the West coast their state will be one of CA, OR, or WA 3. Count and print the total number of people in the original file. 4. Print both names of the shortest person in the original file

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!