Question: Write a progam named lab3.cpp that reads a ntename from a user, You wil define a struct that isable to hold information about a single

Write a progam named lab3.cpp that reads a ntename from a user, You wil define a struct that isable to hold information about a single student. Then, you wil declare an array of structs of the data type you create, and populate it with the information from the file. Your program needs to display the narne, id, and score of each student in ascending arder of ith. A sample run of your programt might look like: In addition to cleating your awn struct atray, you'l need to beash ip on feading from files. as wesl as sorting arraye. To fomat the output, you may want to include the iomanip iorary,and then use left and setw0. for exainple: Here is soene sample code to got your started: zincluet efitreaw) Wf th uet tiles vine liad : citatito oy (listuar ilimanibr y to to we mind) wing nesuce ith ather ul aukent t. irinis in (inh sein() yaeriacuies if nires tin itedent lectiantadi Nrine fienseri Vfuter tegat 1 Here is the selection sort code E_,that you can modify to complete the assignment: int m;// keep the index of current smallest volue
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
