Professional Documents
Culture Documents
University
TERM PAPER
Of
FOUNDATION OF COMPUTING
Topic: -BILL BOOK RECORD OF
STUDENT
CSE 101
Submitted To: - Submitted By:-
ms. MONICA SOOD Name:-BHAVI KHERA
Section:-B2001
Regd No:-11003296
ACKNOWLEDGEMENT
It is not until you undertake the project like this one that you realize
how massive the effort it really is, or how much you must rely upon
the Selfless efforts and goodwill of others. There are many who
helped us with this project, and we want to thank them all from the
core of our Hearts.
And last but not the least, we find no words to acknowledge the
financial assistance & moral support rendered by our parents in
making the effort a success. All this has become reality because of
their blessings and above all by the grace of god.
TABLE OF CONTENTS
S.N Content
o
1 INTRODUCTION
2 DEFINITION
3 Application
4 Future aspects
5 Source code
6 references
OVERVIEW TO C
HISTORY OF C:
C is a popular general purpose programming language. It is one
of the most popular computer languages today, because it is a
structured, high level, machine independent language.
IMPORTANCE OF C:
The increasing popularity of C is probably due to its many
desirable qualities. The C compiler combines the capabilities of an
assembly language with the features of a high level language and
therefore it is well suited for writing both system software and
business packages. In fact many of the C compilers available in the
market are written in C. Programs written in C are efficient and fast.
This is due to its variety of data types and powerful operators. It is
many times faster than BASIC.
There are only 32 key words in ANSI C and its strength lies in its
built in functions. C is highly portable; this means that C programs
written for one computer can be run on another with little or no
modifications. C language is well suited for structured programming,
thus requiring the user to think of a problem in terms of function
modules or blocks. This modular structure makes program de-
bugging, testing and maintenance easier. Another important feature of
C is its ability to extend itself. We can continuously add our own
functions to C library, thus our programming task becomes so easier
and simple.
INTRODUCTION:
We have discussed so far features of bill book and are ready to write
and execute program of modest complexity. However, before
attempting to develop complex programs, it is worthwhile to consider
some programming techniques that would help design efficient and
error free.
Introduction of program
management system
We can make this Student record management system in C language by using
three or more than three header files or many data types such as:
there are many header files which are used in this program….
many more….
function.
4. #include<ctype.h>
SYSTEM REQUIREMENTS
Operating System: Windows 2000/NT/Xp/Vista
Processor P3 or High
SYSTEM DESCRIPTION
START
MAIN MENU
ENTER
YOUR
CHOICE
PRESS[D]
PRESS[A] PRESS[B] PRESS[C] WRONG
QUIT KEY
CREATE ADD LIST
PROGRAM
FILE RECORD RECORD
E
Stude
First Last Middle Cours
YES NO nt record
name name name e code
name
STOP
SOURCE CODE
#include<stdio.h>
#include<conio.h>
#include<string.h>
#include<dos.h>
#include<stdlib.h>
#include<ctype.h>
FILE *fp;
struct student
char snum[13];
char fname[20];
char sname[20];
char mi;
char ccode;
}record;
void Temp1(void);
{
int x,y;
gotoxy(x1,y1); printf("É");
gotoxy(x2,y1); printf("»");
for(y=y1+1;y<y2;y++){
gotoxy(x1,y); printf("º");
gotoxy(x2,y); printf("º");
gotoxy(x1,y2); printf("È");
gotoxy(x2,y2); printf("¼");
for(x=x1+1;x<x2;x++){
gotoxy(x,y1); printf("Í");
gotoxy(x,y2); printf("Í");
gotoxy(x1+1,y1+1);
gotoxy(x,y); printf("%s",string);
int x=(80-strlen(string)+1)/2;
gotoxy(x,y);printf("%s",string);
void Create(void)
char opt;
center(21,"WARNING!!!");
opt=getche(); opt=toupper(opt);
if(opt=='Y')
fp=fopen("Group4.txt","w");
center(24," ");
getch();
fclose(fp);
void Add(void){
char opt;
fp=fopen("Group4.txt","a");
clrscr();
Temp1();
gotoxy(19,8); scanf(" "); gets(record.snum);
gotoxy(19,16); record.ccode=getche();
record.ccode=toupper(record.ccode);
fprintf(fp,"%s %s %s %c
%c",record.snum,record.fname,record.sname,record.mi,record.ccode);
fclose(fp);
void Temp1(void)
twolinebox(2,6,79,20);
twolinebox(2,20,79,24);
twolinebox(2,2,79,24);
center(4,"ADD RECORD");
printxy(6,14,"Middle init:");
printxy(6,16,"Course code: ");
gotoxy(19,7);
void List(void)
int count=0,i,x=0,page=1,CS=0,IT=0,Serv=0;
fp=fopen("Group4.txt","r");
clrscr();
center(3,"G.T ROAD,PHAGWARA");
while(fscanf(fp,"%s %s %s %c
%c",&record.snum,&record.fname,&record.sname,&record.mi,&record.ccode)!
=EOF)
for(i=10;i<=24;i++){gotoxy(1,i); clreol();}
page++;
gotoxy(13,10+x); printf("%d",count+1);
gotoxy(19,10+x); printf("%s",record.snum);
gotoxy(62,10+x);
switch(record.ccode){
x++;
count++;
printxy(25,17,"TOTAL");
getch();
fclose(fp);
void Quit(void){
clrscr();
twolinebox(2,2,79,24);
center(8,"PROGRAMMED");
center(9,"BY");
center(11," ARPAN JOSEPH");
center(13,"ROLL NO B56");
center(14,"ISHANT SHARMA");
center(15,"ROLL NO B57");
delay(5000);
exit(1);
fclose(fp);
void Err_mess(void){
sound(1000);
center(22,"Invalid Input!");
delay(1000);
nosound();
void main(){
char choice;
do{
clrscr();
twolinebox(29,6,51,8);
twolinebox(20,5,60,18);
twolinebox(2,20,79,25);
twolinebox(2,2,79,25);
center(7,"MAIN MENU");
printxy(30,9,"Press:");
printxy(30,11,"[A]-Create File");
printxy(30,12,"[B]-Add Record");
printxy(30,13,"[C]-List Record");
printxy(30,14,"[D]-Quit Program");
choice=getch(); choice=toupper(choice);
switch(choice){
}while(choice!='D');
}
OUTPUT SNAPSHOTS
TESTING
THE SOURCECODE DECLARED ABOVE FOR THE PROGRAM
OF STUDENT RECOD MANAGEMENT SYSTEM HAS BEEN
TESTED AND IT HAS BEEN FOUND THAT THE ABOVE
SOURCE CODE IS OKAY AND CORRECT.THE PROGRAM
INVOLVES MUCH TYPE OF CONVERSIONS. THESE
CONVERSIONS HAS TO DONE CAREFULLY.
2-INTEGRATION TESTING