B. struct type (1 hour and 30 minutes) Implement the following C program. 1. The program reads a text file that has the following structure. The first row includes the number of following rows in the...


please write in C


B. struct type (1 hour and 30 minutes)<br>Implement the following C program.<br>1. The program reads a text file that has the following structure. The first row includes the number<br>of following rows in the file. Then, every line of the text file includes the following information:<br>first name (string) last name (string) zip code (integer) age (integer) GPA (float). Write a C function<br>that reads the input file and stores the information for each person in a dynamically created array<br>of struct elements.<br>2. Write a C function that displays the content of the array storing the input file.<br>3. Write a C function that orders the array in the decreasing order of the person's GPA.<br>4. Write a C function that orders the array in alphabetic order of the person's last name.<br>5. Write a C function that reads a zip code from the keyboard and then displays all the persons with<br>this zipcode.<br>6. Write a main program that repeatedly reads and implements the following commands: D for the<br>function at step 2; 0 for the function at step 3; A for the function at step 4; Z for the function at<br>step 5.<br>7. Submit the C code for the exercise.<br>

Extracted text: B. struct type (1 hour and 30 minutes) Implement the following C program. 1. The program reads a text file that has the following structure. The first row includes the number of following rows in the file. Then, every line of the text file includes the following information: first name (string) last name (string) zip code (integer) age (integer) GPA (float). Write a C function that reads the input file and stores the information for each person in a dynamically created array of struct elements. 2. Write a C function that displays the content of the array storing the input file. 3. Write a C function that orders the array in the decreasing order of the person's GPA. 4. Write a C function that orders the array in alphabetic order of the person's last name. 5. Write a C function that reads a zip code from the keyboard and then displays all the persons with this zipcode. 6. Write a main program that repeatedly reads and implements the following commands: D for the function at step 2; 0 for the function at step 3; A for the function at step 4; Z for the function at step 5. 7. Submit the C code for the exercise.

Jun 11, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here