Our project Tenant Recorder is a tool to manage and
store information about the people currently residing in your house or hostel with ease. We have used C as our coding language for this program and used file handling for permanent storage of data in system. These headers provide functions and definitions for input/output, memory allocation, string manipulation, and Windows- specific functionality. The program runs in windows terminal for using terminal functionality of ‘pause’ and for giving a color to the output screen. There are discreet functions for various aspects of code such as ‘adding a record’, ‘deleting a record’ etc.
Lets look st different components of code:
Library inclusions : The code includes various header files, such as
stdio.h, stdlib.h , string.h , and windows.h.
Console Functions: The code defines a function gotoxy to set the
cursor's position on the console window. This function uses Windows API functions to achieve this. File Pointers: FILE pointers fp and ft are declared. fp is used to work with the "data.txt" file, while ft is used for temporary file operations. Function Definitions: The program defines several functions for various operations: addrecord(),modifyrecord(),displayrecord(),deleterecord() Code in ‘C’ for Above approach:- Output :-