Question: Help writing a c# console student database program The test driver should make a List of the 8 student objects, 4 of each kind, for

Help writing a c# console student database program

The test driver should make a List of the 8 student objects, 4 of each kind, for testing. Use good test data. Good test data means that values are logical and correlate to other field values so that correct output becomes intuitively obvious to a casual observer. See more about testing below.

  • Your inheritance hierarchy for the data objects will have the following spec:
    • Student is the base class. Undergrad and GradStudent classes inherit directly from Student.
    • Student(s) have a first name, last name, email address, student ID, and an enrollment date.
    • Undergrad(s) have a year rank in school that can only take on the literal values Freshman, Sophomore, Junior, or Senior and an overall GPA.
    • GradStudent(s) have a graduate faculty Advisor and they have a financial tuition credit for the teaching they do while in their grad programs.
  • Your database application has the following requirements for basic operations:
    • There is no requirement to be able to modify an object's subtype, i.e, an Undergrad need not be editable to become a GradStudent, or vice versa
    • Email address is a good choice for the primary key - other keys are possible, too.
    • C - Create or add a record to the database
    • R - Read the details of a record (this find or search utility will be useful for other CRUD methods)
    • U - Update or modify some details of an existing record in the database.
    • D - Delete or remove a record from the database.
    • Ability to Save the database between program runs (we are using a plain ASCII text file for this).
  • Some additional misc. requirements
    • Your program must read from and write to plain ASCII text files for persistent storage.
    • C# allows any extension for text files but you will use .txt so that it opens in Notepad
    • Any content, format, or layout of data or meta-data is allowed as long as it is readable text
    • No other database software is allowed (other than the code you write yourself)
    • During run-time the objects must be stored and manipulated in a List, not in the files.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!