Question: C++ language please Part 2 Below I have provided a excel table the one I will be using will have multiple more rows and columns
C++ language please
Part 2 Below I have provided a excel table the one I will be using will have multiple more rows and columns I will change code to meet my needs. I really need help reading in the data so I can change it. Cant figure out how to read in the data to at least show that I got it read in and show it in columns spaced out. I will need to show a function that reads in the data and only uses the columns Players Name, Team, Year, Passes Completed and Completed Percentage all the rest is trash. No commas just white spaces in original .csv file. I prefer the function to not be hardcoded to only accept the 5 players I have shown below but if you need to I can figure out how to change that later. Main task get the data from a .csv file and show the 5 fields. Part 3 Function that finds the quarter back with a set amount of Passes Completed like 110 = Mark, Davis and I could just change the 110 to like 121 and get Dave, Wilson. Part 4 function that shows all the Players who had over 105 Passes Completed.
| Players Name | Year | Team | Color Jersey | Passes Completed | Shoes Size | Completed Percentage |
| John Lucas | 1992 | Orlando | Red | 101 | 12 | 55.4 |
| Dave Wilson | 1993 | New York | Black | 121 | 11 | 63.2 |
| Mike Adams | 1990 | Portland | Green | 106 | 12 | 54.3 |
| Mark Davis | 1994 | Seattle | Black | 110 | 12.5 | 53.2 |
| Arron Ryan | 1991 | Fresno | white | 101 | 12 | 64.5 |
This webpage was reloaded because a problem occurred. Chemeketa CS People Course Resources cs Advising O the PDF (see appendix fortip on capturing output). Part 2: Reading/Storing Data The program should read in the records into an array of structs. It is okay to hard code in the number of records your program will work with. It is okay to not read in the whole file (for example, you may choose to only read in the first 100 records). It is okay to not include all the fields from each record in your struct (to discard some of the fields), but you must store at least 4 of the fields. In your code, aper the file using a relative path, not an absolute path. An absolute path is something like C:\MyFiles\...\datafile.csv, and won't work when your submission is moved to my computer for testing. If your data file is named datafile.csv. your program should open it using just datafile.csv as the path To read in a large number of records (thausands). you may need to allocate your array on the heap using now. We will talk about that in week 10; until that point stick to no more than 1000 pieces of data. Part 3: Output a particular record The program should have a way to output a single record. Demonstrate outputting a single record. This should be done via a function that allows you to specify which record to output. You can specify by record number (index) or by something else la value in the record). For full credit, your PDF must show the output of this being used to print two different records. Make sure to label the output. Something like: Outputting record 10: ...record into Outputting record 15. ...record into Part 4: Output matching records The program should output all the records that match a particular criterion. Examples: All the passing records for one football player All the employees who earned more than $100,000 All the apps that have the word "Tattoo" in the title This should be done via a function that allows you to specify the criterion (player name, salary, word to look for). For full credit, your PDF must show the output of this being used with a label to describe what I am sccing): All apps with the word Tattoo app name ...app name ...app nane This webpage was reloaded because a problem occurred. Chemeketa CS People Course Resources cs Advising O the PDF (see appendix fortip on capturing output). Part 2: Reading/Storing Data The program should read in the records into an array of structs. It is okay to hard code in the number of records your program will work with. It is okay to not read in the whole file (for example, you may choose to only read in the first 100 records). It is okay to not include all the fields from each record in your struct (to discard some of the fields), but you must store at least 4 of the fields. In your code, aper the file using a relative path, not an absolute path. An absolute path is something like C:\MyFiles\...\datafile.csv, and won't work when your submission is moved to my computer for testing. If your data file is named datafile.csv. your program should open it using just datafile.csv as the path To read in a large number of records (thausands). you may need to allocate your array on the heap using now. We will talk about that in week 10; until that point stick to no more than 1000 pieces of data. Part 3: Output a particular record The program should have a way to output a single record. Demonstrate outputting a single record. This should be done via a function that allows you to specify which record to output. You can specify by record number (index) or by something else la value in the record). For full credit, your PDF must show the output of this being used to print two different records. Make sure to label the output. Something like: Outputting record 10: ...record into Outputting record 15. ...record into Part 4: Output matching records The program should output all the records that match a particular criterion. Examples: All the passing records for one football player All the employees who earned more than $100,000 All the apps that have the word "Tattoo" in the title This should be done via a function that allows you to specify the criterion (player name, salary, word to look for). For full credit, your PDF must show the output of this being used with a label to describe what I am sccing): All apps with the word Tattoo app name ...app name ...app nane
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
