C Programming with persistent data - borland compiler preferably

Cancelado Publicado Apr 10, 2012 Pagado a la entrega
Cancelado Pagado a la entrega

(on a single data file). The program will display a menu in a loop (accepting 1:5 as values) which allows the user to:

1. Add Student

2. Delete Student

3. List Students

4. Compact Records

5. Exit

Notes:

Adding students should ideally include a restriction that the Student No. is unique.

Student should be deleted, after requesting a Student no. as the key. If the student record cannot be found, the user should be informed, otherwise the record should be marked with '*' in the first byte.

List Students, should display on Screen a list of all active students on file, followed by the Total no. of records & No. of deleted students values retrieved from the header record. Appropriate titles & formatting should be used for displaying this information in a meaningful manner.

Compact Records, should cause the removal of all external fragmentation from the file.

Adding, deleting & compacting record(s) options, should result in the appropriate updates to the header record and informative messages to the user of the outcome.

Appropriate error checking should be included (e.g. checking for successful opening of files)

Suggestion: At the commencement of your program, you should check to see if the student file already exists, if not, create one and add an initialised header record & inform user.

The data file will be named "[url removed, login to view]" and is a binary file.

The data file will contain a header record and student records.

Header Record fields:

Int: Total Records (No. of records stored on file incl. Those marked for deletion);

Int: No. of Deleted Records (No. of records marked for deletion);

Char: Filler [16].

Student Record fields: Char: Student No[6] (Student no. with the following format 'C1234'); Char: Last name [16]; Char: First name [16]; Char: Address [26]; Char: Program Code [6] (e.g. DT228);

Char: Program Year [1] (Only allowed values: '1','2','3' or '4')

Marking Criteria: Demonstration of a working program (50%) Algorithm design & creativity (30%) Code & pseudocode documentation (20%)

Some examples (not exclusive) of creativity: Using functions Applying uniqueness to Student No.s Allowing the user to list active students by programme code/year Sorting on compaction

Programación en C#

Nº del proyecto: #2730491

Sobre el proyecto

Proyecto remoto Activo Apr 10, 2012