Provide me with original solution do not copy paste i will dislike if you do so. Design a modular solution, using a structure chart , and then write a C program based on the structure chart solution...


Provide me with original solution do not copy paste i will dislike if you do so.


Design a modular solution, using a structure chart , and then write a C program based on the structure chart solution that solves the following question. Show the flow of data on your structure chart; in the program, this is achieved by parameter passing and function return data.


Data for your program comes from an input file calledinfile.txt. Each line in the data file has a person’s first name (one word) and an age (separated by a space). There can beup to 10
linesin the data file, and there may be names that are the same (in this case, it can be assumed that the record is for that same person). An example of one line is:


Tony 30


 Your program reads the data into a data structure, which consists of an array of records (i.e. array of C structs). Thus, the program would need to define a suitable struct, and create an array of these structs.


Once the data is read in and stored in the data structure the program closes the input file, and then determines if there are any repeated names in the data structure. If there are repeated names, the name and age of the repeated records should be displayed once per person to the screen (just as recorded in the input file above). If there are no repeated records, ‘no repeats’ is displayed to the screen.


 Finally, the program will write the data stored in the data structure to a csv (Comma Separated Value) file; the output file should be namedoutfile.csv. Each record in the data structure will be written to the file on a separate line. A line format will be the same as was in the input file, with the exception that acomma(instead of a space) will separate the fields of each record. There must be NO records containing repeated names inoutfile.csv.

Jun 09, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here