Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started