Question
You are given a student data file which consists of the student's name, student ID , and GPA . Data set is provided below: Name
You are given a student data file which consists of the student's name, student ID, and GPA. Data set is provided below:
Name ID GPA
Alice 8234 2.7
Mark 2672 3.0
Joanne 1234 3.7
John 3291 2.0
Tim 3212 3.8
Alford 1034 2.7
Benson 6290 2.5
Nancy 4234 3.7
Oscar 1672 1.0
Larry 1004 2.7
Write a program to process this student data. First, input these records into a record structure. Then, sort them in ascending order using Student ID as a key. Display the sorted output.
You are limited to use ONLY the concepts of one dimension array and record (struct).
Please try to read the data from a text file and arrange the data from smallest to largest based on the ID column
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