Professional Documents
Culture Documents
Slam Book Generation System
Slam Book Generation System
On
Slam book generation system
A
Dissertation
Submitted in the Partial Fulfillment of the
Academic Requirements
for the Award of the Degree of
BACHELOR OF TECHNOLOGY
IN
ELECTRONICS AND COMMUNICATION
ENGINEERING
By
1)ABHIGNA NARAGANI (19RH1A04F8)
2) NAYINI AKANKSHA (19RH1A04G0)
______________________________________________________________________________
CERTIFICATE
This is to certify that this is the bonafied record of the project titled
“Slam book generation system” submitted by
of First year B.Tech, in the partial fulfillment of the requirements for the degree of
Bachelorof Technology in Electronics and Communication Engineering during the
year 2019-2020. The results embodied in this project report have not been
submitted to any otheruniversity or institute for the award of any degree or
diploma.
(Asst.professor)
ACKNOWLEDGEMENT
We feel ourselves honored and privileged to place our warm salutation to ourcollege
Malla Reddy Engineering College for Women and department of Computer Science &
Engineeringwhich gave us the opportunity to have expertise in engineering and profound
technical knowledge.
We would like to thank our Project co-coordinators Mr.Y.MADAN REDDY for their
kind encouragement and overall guidance in viewing this program a good asset. With profound
gratitude,
We express our heartiest thanks to Mrs. CH KUSUMA KUMARIHead of the
Department,H&Sfor encouraging us in every aspect of our project.
We wish to convey gratitude to our Principal Dr.Y.MADHAVEE LATHA, for
providing us with the environment and means to enrich our skills and motivating us in our
endeavor and helping us realize our full potential.
We hereby declare that the project entitled “SLAM BOOK GENERATION SYSTEM
"submitted to Malla Reddy Engineering College for Women(UGC-AUTONOMOUS),
affiliated to Jawaharlal Nehru Technological University, Hyderabad for the award of the
Degree of Bachelor of Technology inELECTRONICS and COMMUNICATION
Engineering is a result of original research work done by us.
It is further declared that the project report or any part thereof has not been previously
submitted to any University or Institute for the award of degree or diploma.
Our program will have the databases of the keeper of the book starts
by posing a question (which may be on any subject) and the book is
then passed round for each contributor to fill in their own answer to
the question.
INDEX
The slam book generation system is at the heart of almost all activity relating to freinds and
their actions at Queen's. The sbs deals with the various different questions like their date of birth
,and some personal information . It deals with prospective freinds, through to enrolments, fees,
and registration. It also deals with exam results, graduation and statutory reports.
1.1 Purpose of SIS Project
The key objectives of the project are to:
o Books which would contain a person or teacher topic of some sort and was password
o around where other students would write mean or harshful comments about them.
o Easy to remember the names of all classmates and their details.
o Its bring back past memories
Allow easy interface to, and seamless integration with, other key systems.
1.2 scope
The aim is to adopt a system that :
Provides a single, complete, integrated & authoritative source of information for all
management.
If you are a tool and don't have a creative bone in your body, and can only post
things created by other people.
Other friend can view and like the picture
Online feature can be added.
Objectives:
The main objective of online slam book is to provide the ease to accesise the reviews of
youe peeps.
Proper maintenance of friends record.
No paper work is required.
E-mail facility is also available.
Reduce time consumption.
2. REQUIREMENTS
1. RAM 1GB
2. HARDDISK 80GB
3. PROCESSOR PENTIUM
3. ANALYSIS PHASE
3.1 Introduction
This module allows the user to delete the page from the database.
4. DESIGN PHASE
4.1 ALGORITHM
STEP 1:Enter the login and password .
If login=keehar and password=keehargoto step 2
Else repeat step 1 .If login is fail for 3 times then exit and goto step 8.
STEP 2:Display the menu to select the options using switch case
1)NEW goto step3
2)DELETE goto step4
3)UPDATE goto step5
4)DISPLAY goto step6
5)PRINT goto step7
6)EXIT goto step8
STEP 3:call function add() in which following information is entered-> name, zodiac sign,dob,
address and profession is input.After this call menu() and Goto step 2.
STEP 4:call function delete() in which following information is deleted->friend name,zodiac,dob
and profession is input.After this call menu() and Goto step 2.
STEP 5:call function update() in which following information is to updated by using following
options 1) Student name goto step 6
2) page nogoto step 7
3) zodiac signgoto step 8
4) dob goto step 9
5) professiongoto step 10
After completion call menu() and Goto step 2.
STEP 6:Updatenamegoto step 2
STEP 7:Updatepage number goto step 2
STEP 8:Updatedobgoto step 2
STEP 9:Updateprofession goto step 2
STEP 10:Updatezodiac signgoto step 2
STEP 11:call function display() in which following information is displayed-
>friendname,zodiacsign,dob, and profession is input.After this call menu() and Goto step 2.
STEP 12:call function print() in which following information is printed in printable format
->name,dob,zodiacsign,andprofession is input.After this call menu() and Goto step 2.
STEP 13:EXIT
STEP 14:Thank you message is display
no
yes
If login=KEEHAR&& password=*** ?
ccssdfhghgss
C<cc yes
Input name,sno,phone,address1,email and choice
Enter choice
Switch choice 8
Case 1: add() 1
Case 2: delete()
7 2
6
update()
Case 3: 3
Case 5: print() 5
Case 4: display()
4
Default:Invalid Choice
6
7
EXIT
1
Enter
name,zodiacsign,dob,profession
Record added
successfully
8
5.IMPLEMENTATION
#include<conio.h>
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
void menu();
void header();
void newaccount();
void add();
void login();
void search();
void display();
void deleted();
void update();
int ch,count=0,f=0;
char tid[10];
char uname[20]="keehar";
char pass[20]="keehar";
struct friends
{
char pg_no[10],name[20],hobby[20],prof[20],sign[10],dob[10];
}slam;
struct friends slam1={0};
void main()
{
login();
}
void login()
{
char un[10];
char ps[10];
header();
while(count<3)
{
printf("\nusername:");
scanf("%s",un);
printf("password:");
scanf("%s",ps);
if(strcmp(un,uname)==0&&strcmp(ps,pass)==0)
{
printf("MY SLAM BOOK");
menu();
}
else
{
printf("try again");
count++;
getch();
login();
}
}
if(count==3)
{
printf("ur attempts are over");
getch();
exit(0);
}
getch();
}
void menu()
{
header();
gotoxy(23,9);
printf("\n1.CREATE A NEW ACCOUNT");
gotoxy(23,10);
printf("\n2.ADD A NEW PAGE");
gotoxy(23,11);
printf("\n3.SEARCH A PAGE");
gotoxy(23,12);
printf("\n4.DISPLAY A PAGE");
gotoxy(23,13);
printf("\n5.DELETE A PAGE");
gotoxy(23,14);
printf("\n6.UPDATE A PAGE");
gotoxy(23,15);
printf("\n7.EXIT");
gotoxy(23,16);
printf("\nENTER UR WHAT U WANT");
scanf("%d",&ch);
switch(ch)
{
case 1:newaccount();
break;
case 2:add();
break;
case 3:search();
break;
case 4:display();
break;
case 5:deleted();
break;
case 6:update();
break;
case 7:exit(0);
}
getch();
}
void newaccount()
{
FILE *fp;
fp=fopen("student.txt","w");
printf("\n ONE NEW FILE CREATED SUCCESFULLY");
getch();
fclose(fp);
getch();
menu();
}
void add()
{
FILE *fp;
fp=fopen("friends.txt","a+");
if(fp==NULL)
{
printf("PAGE IS NOT CREATED");
getch();
exit(0);
}
printf("\n ENTER PAGE NUMBER");
scanf("%s",&slam.pg_no);
printf("\ENTER YOUR NAME");
scanf("%s",&slam.name);
printf("\n ENTER UR ZODIAC SIGN");
scanf("%s",&slam.sign);
printf("\n ENTER your PROFESSION");
scanf("%s",&slam.prof);
printf("\n ENTER YOUR HOBBIES");
scanf("%s",&slam.hobby);
printf("\n ENTER DATE OF BIRTH");
scanf("%s",&slam.dob);
fwrite(&slam,sizeof(slam),1,fp);
printf("\nNOW YOU ARE IN MY FRIENDS LIST");
getch();
fclose(fp);
menu();
}
void search()
{
FILE *fp;
fp=fopen("friends.txt","r+");
if(fp==NULL)
{
printf("PAGE IS NOT OPENED");
getch();
exit(0);
}
printf("ENTER UR DETAILS:");
scanf("%s",&tid);
while(fread(&slam,sizeof(slam),1,fp))
{
if(!strcmp(slam.pg_no,tid))
{
f=1;
printf("\n\t\t\tPAGE IS FOUND");
printf("\nPAGE NUM :%s",slam.pg_no);
printf("\nNAME :%s",slam.name);
printf("\nZODIAC SIGN :%s",slam.sign);
printf("\nPROFESSION :%s",slam.prof);
printf("\nHOBBIES :%s",slam.hobby);
printf("\nDATE OF BIRTH :%s",slam.dob);
printf("\n\n");
getch();
}}
if(f==0)
printf("\n\n\t\t\tPAGE is not FOUND");
getch();
fclose(fp);
menu();
}
void display()
{
FILE *fp;
fp=fopen("friends.txt","r+");
if(fp==NULL)
{
printf("PAGE IS NOT OPENED");
getch();
exit(0);
}
while(fread(&slam,sizeof(slam),1,fp))
{
if(strcmp(slam.pg_no,'\0'))
{
f=1;
printf("\nPAGE NUM :%s",slam.pg_no);
printf("\nNAME :%s",slam.name);
printf("\nZODIAC SIGN :%s",slam.sign);
printf("\nPROFESSION :%s",slam.prof);
printf("\nHOBBIES :%s",slam.hobby);
printf("\nDATE OF BIRTH :%s",slam.dob);
printf("\n\n");
getch();
}}
if(f==0)
printf("\n\n\t\t\tNO ACCOUNT");
getch();
fclose(fp);
menu();
}
void deleted()
{
FILE *fp;
fp=fopen("friends.txt","r+");
if(fp==NULL)
{
printf("PAGE IS NOT OPENED");
getch();
exit(0);
}
printf("ENTER UR PAGE NUMBER TO BE DELETED:");
scanf("%s",&tid);
while(fread(&slam,sizeof(slam),1,fp))
{
if(!strcmp(slam.pg_no,tid))
{
f=1;
printf("\n\t\t\tONE PAGE IS DELETED SUCCESSFULLY");
6.2 Introduction
S.N Test case Test case Expected Result Obtained Status(Pass/Fai
o Name Description Result l)
This slam book generation project will serve as a useful approach to many friends
through their information present in the slam book. update add, advanced search options
for the authorized person. It is a easily accessible way to contact friends. It reduces the
time taken by the user to add, update, delete, view& search the information.
Thus the project is the user friendly approach.
9. REFRENCES
1. C programming by Balagurusamy
2. Let us c by Yashwanthkanethkar
3. Google search engine.