Professional Documents
Culture Documents
DSU Microproject Proposal
DSU Microproject Proposal
MICRO PROJECT-PROPOSAL
ON
1. Save numbers.
ON
Phonebook is a very simple mini project in C that can help you understand
the basic concepts of functions, file handling and data structure. This
application will teach you how to add, list, modify or edit, search and delete
data to/from the file.
Adding new records, listing them, modifying them and updating, search for
contacts saved, and deleting the phonebook records are the basic functions
which make up the main menu of this Phonebook application (as shown in
the main menu screenshot below).
The aim of developing the Art Gallery database are as given below: -
To store data of the entire user who are registered in the site.
To solve the user’s problem in time efficient manner. Helping the user
to search different Art with a robust search tools.
To facilitate easy and efficient retrieval of data as and when required
for Art by the user.
Students will have sufficient mastery of one or more media to complete the
technical and formal challenges pertinent to a body of original work.
Students will be able to develop ideas that are relevant and responsive to the
world around them.
Mr. Sajid Momin Sir, guide us how to collect the information & how
to work on the subject. According to his guidance we followed the rule and
after collecting information our project is completed. Finally, our project is
successfully completed. As per the decision of all members complete the
given work.
1. Software Oracle, 1
Microsoft
-Word
Design specification:
PROGRAM CODE:
#include<stdio.h>
#include<conio.h>
#include<string.h>
#include<stdlib.h>
#include<windows.h>
struct person
char name[35];
char address[50];
char father_name[35];
char mother_name[30];
char sex[8];
Void back();
Void addrecord();
Void listrecord();
Void modifyrecord();
void deleterecord();
Void searchrecord();
int main()
system("color 5f");
start();
return 0;
void back()
start();
void start()
{
menu();
void menu()
system("cls");
printf("\t\t**********WELCOME TO PHONEBOOK*************");
printf("\n\n\t\t\t MENU\t\t\n\n");
switch(getch())
case '1':addrecord();
break;
break;
break;
break;
break;
default:
system("cls");
printf("\nEnter 1 to 6 only");
getch();
menu();
void addrecord()
system("cls");
FILE *f;
struct person p;
f=fopen("project","ab+");
got(p.name);
got(p.address);
got(p.father_name);
scanf("%ld",&p.mble_no);
printf("Enter sex:");
got(p.sex);
printf("\nEnter e-mail:");
got(p.mail);
got(p.citision_no);
fwrite(&p,sizeof(p),1,f);
fflush(stdin);
printf("\nrecord saved");
fclose(f);
getch();
system("cls");
menu();
void listrecord()
{
struct person p;
FILE *f;
f=fopen("project","rb");
if(f==NULL)
exit(1);
while(fread(&p,sizeof(p),1,f)==1)
getch();
system("cls");
fclose(f);
getch();
system("cls");
menu();
void searchrecord()
struct person p;
FILE *f;
char name[100];
f=fopen("project","rb");
if(f==NULL)
exit(1);
got(name);
while(fread(&p,sizeof(p),1,f)==1)
if(strcmp(p.name,name)==0)
else
fclose(f);
getch();
system("cls");
menu();
void deleterecord()
struct person p;
FILE *f,*ft;
int flag;
char name[100];
f=fopen("project","rb");
if(f==NULL)
{
else
ft=fopen("temp","wb+");
if(ft==NULL)
else
got(name);
fflush(stdin);
while(fread(&p,sizeof(p),1,f)==1)
if(strcmp(p.name,name)!=0)
fwrite(&p,sizeof(p),1,ft);
if(strcmp(p.name,name)==0)
flag=1;
fclose(f);
fclose(ft);
if(flag!=1)
remove("temp.txt");
else
remove("project");
rename("temp.txt","project");
getch();
system("cls");
menu();
void modifyrecord()
int c;
FILE *f;
int flag=0;
char name[50];
f=fopen("project","rb+");
if(f==NULL)
exit(1);
else
system("cls");
printf("\nEnter CONTACT'S NAME TO MODIFY:\n");
got(name);
while(fread(&p,sizeof(p),1,f)==1)
if(strcmp(name,p.name)==0)
got(s.name);
got(s.address);
got(s.father_name);
got(s.mother_name);
scanf("%ld",&s.mble_no);
printf("\nEnter sex:");
got(s.sex);
printf("\nEnter e-mail:");
got(s.mail);
printf("\nEnter citizen no\n");
got(s.citision_no);
fseek(f,-sizeof(p),SEEK_CUR);
fwrite(&s,sizeof(p),1,f);
flag=1;
break;
fflush(stdin);
if(flag==1)
else
fclose(f);
getch();
system("cls");
menu();
int i=0,j;
char c,ch;
do
c=getch();
if(c!=8&&c!=13)
*(name+i)=c;
putch(c);
i++;
}
if(c==8)
if(i>0)
i--;
// printf("h");
system("cls");
for(j=0;j<i;j++)
ch=*(name+j);
putch(ch);
}while(c!=13);
*(name+i)='\0';
}
OUTPUT:
7.0 Skill Developed/ learning out of this Micro-Project:
Time Management.
Stress Management.
Study Skills.
Money Management.
Assertiveness Skills.
Well-Developed Self Care Skills.
Keeping Safe and Avoiding Risky Behaviors.
Seeking Assistance When Needed.