Ds Project Report
Ds Project Report
PROJECT REPORT
We've divided our user defined functions into two parts: Minor Functions (which
are used frequently to support execution of core porgram) and Major Functions
(which are a part of core program). Minor function definition from Line 12-25.
void gotoxy(int x,int y); //To move the cursor to x column and y row of
output screen
void _password(char buffer[]);// To input password from user so that
asterik (*) is displayed for each character entered. Similar to gets(string);
function
void rectangle(int x,int y,int l,int b);// To make a rectangle starting from
(x,y) with length l and breadth b
void cls(int x1,int y1,int x2, int y2); // To clear only certain portion of
screen starting from (x1,y1) to (x2,y2). Notice this function has been used in
date entry. When date is not in dd/mm/yyyy format, the wrong value is
cleared on the screen
void increase(char i_id[]); // To increase ID by unit value. Eg. U001 --->
U002 and AC00099 ---> AC00100. Since i_id is an array, it is passed by
reference. So the input value and changed value is obtained from same
variable i_id[]
void date_input(char date[]); // To convert date in format dd/mm/yyyy
(The format in which user is asked to enter date) to mm/dd/yyyy (The
format in which date is stored in data file)
void date_output(char date[]); //To convert date in format mm/dd/yy to
dd MMM, yyyy. Eg. 01/01/11 is changed to 01 Jan, 2011
void currency(char cur[], float n); // To convert a floating number n into
currency format in Hindu Arabic Number system. Eg. on execution of the
statement currency(cur,123456.789); the value of cur will be "1,23,456.78"
void num2word(double n,char word[]);// To convert a floating (double)
number n into word according to Hindu Arabic Number System
void _one(int n, char one[]); // This function is a part of function
num2word(). Simple function that stores "One " for 1, "Two " for 2, ... upto
19 in string varaible one[].
void _ten(int n,char ten[]); // This function is a part of function
num2word(). Simple function that stores "Ten " for 10, "Twenty " for 20, ...
upto 90 in string varaible ten[].
int date_check(char date[]);//Function to check if date is in format
dd/mm/yyyy or not. Returns 0 if the format is not valid and 1 for valid
format.
void title();//Clears the screen and displays Program title, Current User and
Current date on top of Screen
void welcome();// Displays welcome screen that you see as soon as
program is executed
WORK BREAKUP-
AMIR SUHAIL- GRAPHICS & DEBUGGING
SURYANSH BAHUGUNA- BASIC FUNCTIONS IN THE CODE
SAGAR VERMA- BASIC FUNCTIONS IN THE CODE
SCREENSHOTS OF THE RUNNING PROGRAM-
GROUP MEMBERS
AMIR SUHAIL(SNU ID:1410110043)
SURYANSH BAHUGUNA(SNU ID:1410110452)
SAGAR VERMA(SNU ID:1410110344)