Project

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 2

4.

METHODOLOGY

The different methodologies that were used to gather the required tools and features are different
types of header files, structures and the use of file handling.

4.1 Header Files

In C language, there are header files that contain a set of predefined standard library functions.
The major header files used in this program are:

i. stdio.h - inputs and output functions such as printf(), scanf(), fopen(), fread() etc.
ii. string.h - functions like strcmp, strcpy , for comparing and copying strings.
iii. stdlib.h - functions like cls.

4.2 Structures

Structures are containers that can hold several different types of data types in a single container
and thus can be accessed using the ‘.’ operator. It essentially creates a data type of its own which
makes it easier to access certain elements without the need for repetition. In this project we have
made use of them to create various structures such as student, teacher with elements like name,
assignments inside them such as to make it easier to access them.

4.3 File Handling

File handling refers to the use of various in-built functions in C to manipulate files and read,
write or append them. In this program we have used file handling to store the data of the
students, the teachers and access them whenever needed. Various functions such as fopen(),
fclose() , fread(), fwrite() etc have been used as the condition requires to efficiently store the
data.

4.4 Authentication

As we have also created a login mechanism for students and teachers with their Ids and
passwords. For authentication, we’ve made use of the string compare function (strcmp). We’ve
stored the data in Id and password elements of the structure when signing up and when they try
to sign in later, using strcmp we compare them to see if the Id and password are correct and
authenticate the user and give them access to certain things based on their denomination.

4.5 Integration
To integrate all the features in a meaningful way such as to make the code readable and more
efficient, we have created our own header files to better organize and structure the code with
function definitions in different header files.

4.6 How it comes together

Thus, we use different header files that have predefined functions in C for the basic tasks of
printing and taking input from the user. We have used the concept of file handling to handle the
data and store it in a safe place such that it can be accessed and changed at different times
according to the conditions achieved. We’ve created backup files for each of the created files
such that the data can be restored in case there’s a failure in code. We’ve used structs to define
data types such as student with different attributes. This all comes together to form a efficient
and easy system to manage interactions between teachers and students.

You might also like