Question: Problem: A Student Database Databases are an essential part of most computing systems, and has become an indispensable part of our lives as a whole.





Problem: A Student Database Databases are an essential part of most computing systems, and has become an indispensable part of our lives as a whole. We encounter many databases on a daily basis, even though we may not realize it (student records, social security, health medical to just name a few). This homework will look at a mini-database to store some student records, and will use a plain text file to Store and retrieve information for multiple students. In database terms, this is referred to as a flat-file storage. In a flat-file storage, cach linc rcprcscnts once uniquc rccord. So if you wcrc to storc the information of cvery student in a given class (like CSci1113 Scction 100 in a flat file, this would take up cxactly one line per student record. You have seen an example of a flat-file database in the lab on earthquake dala where you used a comma-separated value (CSV) file In this homework, you will create an object-oriented program with classes, to 1. read in all the student records available from an input file into C++ objects representing student records, 2. sort those records based on their GPA 3. write the sorted records into a different file Input/output specifications: 1. The input file will be called "input.dat' (without the quotes) 2. The output file will be called 'output.dat' (without the quotes) 3. Each line in the input file will contain entry for exactly one student, and the same needs to happen for the output file. 4. Number of records in a file shall not be known upfront. 5. The student records will be made up of the following fields (with data types in parenthesis): 1. 8-digit ID (string) 2. First Name (string) 3. Last Name (string) 4. GPA (double) 5. Academic level (string)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
