Question: 1. Create a tle named score.bxt that holds the name, id, and score of each student in a course. Assume that the maimum enrollment in

1. Create a tle named score.bxt that holds the name, id, and score of each student in a course. Assume that the maimum enrollment in the class is 30 . The foliowing is a sample file: Write a program named lab3.cpp that reads a filename from a user. You will define a struct that is able to hold information about a sinde student. Theri, you will deciare an array of structs of the data fype you create, and populate it with the information from the file. Yourprogramneeds to display the name, id, and score of each student in ascending order of ids. A sample runt of your program might look kke: In addition to creating your own struct acray, you'l need to brush up on reading from files, as well as sorting arrays. To fot inat the output you may want to include the iomanip libracy, and then use lelt and setwo, for exarpple. 3 Here is the selection sort code E, that you can modify to complete the assignment: void 5 _sort (double [1, int n ) int m; I/ keep the index of current smallest volue double hoid; for (int k=0;k
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
