Professional Documents
Culture Documents
Casual Leave(CL):-
4. #include<stdio.h>
stdio.h stands for standard input output header
5. #include<string.h>
strcmp - compare two strings.
strcpy - copy a string.
strlen - get string lengt
we also use #include<dos.h> , #include<stdlib.h> header files.
Functions
I
Creates the graphics window on the screen.
InitGraphics() initGraphics(width, height)
Syntax :
In Turbo Graphics each color is assigned a number. Total 16 colors are available. Strictly speaking number of available colors depends on current
graphics mode and driver.
For Example :- BLACK is assigned 0, RED is assigned 4 etc. setcolor function is used to change the current drawing color. . Setcolor (RED) or setcolor
(4) changes the current drawing color to RED. Remember that default drawing color is WHITE.
Setcolor sets the current drawing color to color which can range from 0 to maxcolor
.Rectangle :-
Declaration :- void rectangle( int left, int top, int right, int bottom);
rectangle function is used to draw a rectangle. Coordinates of left top and right bottom corner are required to draw the rectangle. left specifies
the X-coordinate of top left corner, top specifies the Y-coordinate of top left corner, right specifies the X-coordinate of right bottom corner, bottom
specifies the Y-coordinate of right bottom corner.
Outtextxy :-
outtextxy function display text or string at a specified point( x,y) on the screen.
Gotoxy :-
gotoxy() function in C language is used to take the cursor to a particular co-ordinate of the screen . the argument of this function is the co-ordinate
where you want to take the the cursor . in Turbo c/ c++ you can directly use the gotoxy () library function
Gotoxy function places cursor at a desired location on screen i.e. we can change cursor position using gotoxy function.
PRODUCT FUNCTIONALITY
Opening a file
OPENING FILE USING CONSTRUCTOR
ofstream outFile("sample.txt"); //output only
ifstream inFile (“sample.txt”); //input only
OPENING FILE USING open()
ofstream outFile;
outFile.open ("sample.txt");
ifstream inFile ;
inFile.open("sample.txt");
All i/o streams objects have, at least, one internal stream pointer:
ifstream, like istream, has a pointer known as the get pointer that points to the
element to be read in the next input operation.
ofstream, like ostream, has a pointer known as the put pointer that points to the
location where the next element has to be written.
Finally, fstream, inherits both, the get and the put pointers, from iostream (which is
itself derived from both istream and ostream).
These internal stream pointers that point to the reading or writing locations within
a stream can be manipulated using the following member functions:
LOGIN AUTHENTICATI
ON
LEAVE
Employee
payroll and
EMPLOYEE
ADMINSTRATOR leave
managemen
t
INFORMATION
LEAVE LEAVE
STATUS REPORT
DFD at LEVEL1
Employee
Manages
Employee
Employee Leave
details
Employee
Stores
file
Files
SYSYTEM REQUIREMENTS
Software Requirements
• TURBOC++
Hardware Requirements
• Processor : DUAL CORE
• RAM : 1GB or more
• Hard Disk : 2GB
• Keyboard
• Mouse
APPLICATIONS
The leaves that have not been availed by the staff in the given session
can be automatically carried forward to the next working session
depending on the HR policy of the organisation.
Every employees individual leave record can be tabulated in a pie
chart format to ascertain his/her performance during the working
session for HR appriasal activity
Limitations
The leave status cannot be cleared until and unless the HOD
approves/ rejects the application.
The staff cannot cancel the leave application once made.