|
Homework 2 : Student Records
|
Project Description
Write a C++ program that helps UMass faculty to maintain a simple student database. Write the program as a console application (i.e., no graphical interface). Use only the header files
iostream, fstream, string and/or vector and write every line of code yourself. You can also use STL libraries to make your implementation easier, but you are not required to do so.
Project Requirements
The program should be console-based.
It displays a main menu and allows the user to select different options by typing in commands.
At any time, the user can go back to the main menu.
The program is supposed to provide the following functions:
(3.5 pts)
- add student
- remove student (identified by Student ID)
- edit student (ask for a Student ID, then allow the user to change any info of the student with that Student ID.)
- print all data on a student (identified by Student ID)
- print the names and IDs of all freshmen, sophomores, juniors or seniors.
- save all data in the database to a file (filename specified by user)
- load the data from a file (filename specified by user)
A student record has the following:
(1.5 pts)
- full name: implement as either one string (first and last name)
- Student ID: a string of 9 digits (no other characters allowed). No two students can have the same Student ID
- year of study (freshman, sophomore, junior, or senior)
- gender (male or female)