Experiment_7 - Hacettepe University Department of Computer...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
Hacettepe University Department of Computer Engineering BiL137 Computer Laboratory I 2009-2010 / Fall Experiment 7 Subject : Intermediate Level C Programming: Arrays, Pointer Arithmetic, Structs, File I/O Operating System/Environment : Linux: CentOS 5.4 Programming Language/Environment : Standard C (89) and GCC (the versions which can be found in the operating systems are listed above) Date Due : 05/01/10, 17:00 Advisors : Oğuz Aslantürk, R.A. Tuğba Gürgen Introduction In this experiment you are asked to develop a Database Management System (DBMS) using File I/O, Structs and Pointer Arithmetic on Arrays extensively. A DBMS is a kind of software which provides persistent storage and special access mechanisms for users' data. It provides a language to access data, to read and to modify it. In this experiment you will develop a domain specific, simple DBMS for storing and accessing Student Affairs Information System using a simple domain specific language. A domain specific application or any other kind of specification is only valid for that particular domain which means it cannot be used in a generic fashion. Details are given in the following sections. Experiment General Information: 1. All students own a special number (integer), a name (string) and a surname (string). Each student's number is unique. There might be students who have the same name or surname, but their student number must be definitely different.
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
2. All courses own a course code (string), a name (string) and credit (integer). The course code of a course is 6 characters in length. Each course distinguishes from other courses through its code. 3. All lecturers own a registration number (string), a name (string) and a surname (string). The registration number of a lecturer is 5 characters in length. One lecturer distinguishes from others through his/her registration number. Problem Your program will get 5 command line arguments which are 4 input file names and 1 output file name respectively. A sample execution can be as follows: ./database students.txt lecturers.txt courses.txt commands.txt output.txt This particular execution scheme can be interpreted as " read students, lecturers and courses from the data files, read commands from the command file and write results of command executions to the output file". A formal specification of the execution model is: <program> <students_file> <lecturers_file> <courses_file> <output_file> The students file format is given below: < S : the number of students> <student_number> <name> <surname> <student_number> <name> <surname> <student_number> <name> <surname> The lecturers file format is given below: < L : the number of lecturers> <registration_number> <name> <surname>
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 01/10/2010 for the course QWE qwe taught by Professor Qwe during the Spring '09 term at Amarillo College.

Page1 / 8

Experiment_7 - Hacettepe University Department of Computer...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online