Professional Documents
Culture Documents
On
Bachelor of Technology
In
COMPUTER SCIENCE ENGINEERING
By
S.V.Rohith-150031000 section-03
A.Akhila-150030024 batch-27
K L University
DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING
K L University
DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING
CERTIFICATE
Project Guide
1 Introduction
1.1 What is Marriage Bureau
1.2 Problem Definition
1.3 Platform requirements
1.4 Software Requirements Specification
2 Analysis & Design
2.1 Analysis classes
2.2 Program Architectural Design
2.3 File Design
2.4 Input Design
2.5 Output Design
3 Source Code of the project
4 Results
5 Conclusion and Future Scope
6 Bibliography
ACKNOWLEDGMENTS
The satisfaction that accompanies that the successful completion of any task would be
incomplete without the mention of people whose ceaseless cooperation made it possible,
whose constant guidance and encouragement crown all efforts with success.
We are grateful to our project based Lab guide Dr.G Swain Professor, Computer
Science & Engineering for the guidance, inspiration and constructive suggestions that helped us
in the completion of this project.
The Marriage Bureau system is meant for maintaining information of bride and
bridegrooms. It makes a matching between brides and bridegrooms depending on
their requirements. Enquiry facility is provided where ever required.
Hardware/
Hardware / Software element Specification /version
Software
RAM 1 GB
Software OS Windows XP
A sample input dialog for creating brides information file is shown below
How many records?
2
Enter Brides Id:12345678
Enter Brides Name: Krishna
.
.
.
.
.
For selecting different functions of the system it displays a menu and reads the
choice of user from keyboard.
Menu
1. Create Brides File
2. Add more records to Brides file
3. Search by Bride Id;
4. Generate Report;
5. Quit
The System also takes input from files(The file design was shown earlier)
2.5 Out Put Design
The output of the system (including reports) is displayed on the console in a
formatted way. The output may also go to a file(file design already explained).
Following is the formatted output for displaying list of brides
List of brides
1. brideId.: 12345678
brideName: krishnabrideAge: 29
2. brideId.: 12345670
brideName: gopalbrideAge: 32
End of List
1. For searching details of bride with its brideId the search report will be
displayed as follows
Search by brideId
enter brideId: 12345670
1. brideId.: 12345670
brideName: gopalbrideAge: 32
2. Enter brideId:12345678
brideId.: 12345678
brideName: krishnabrideAge: 29
SOURCE CODE OF THE PROJECT:
import java.util.*;
import java.io.*;
class Brides
int i,num;
int choice=0;
int
regNo,intAge,Bage=0,salary,bgminsalary,bgmaxsalary,height,Bheight=0,minHeight,maxHeight;
String name,address,qualify,bgqualify;
int bgminage=0,bgmaxage=0,bgminheight=0,bgmaxheight=0;
int searchRegNo=0;
boolean flag=true;
int snum;
//login data
String loginName;
String passWord;
String adminPassword="admin123";
String userPassword="user123";
//search data
int minAge ;
int maxAge ;
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
//login procedure
while (true)
System.out.print("Login name(admin/user/quit):");
loginName=br.readLine();
if(loginName.equals("quit"))
return;
System.out.print("Password:");
passWord=br.readLine();
if(loginName.equals("admin"))
if(passWord.equals(adminPassword))
break;
if(loginName.equals("user"))
if(passWord.equals(userPassword))
break;
for(i=0;i<20;i++)
System.out.print("\n");//print 20 blanklines
while(flag)
System.out.println("\n Menu");
System.out.println("8. Quit");
choice= Integer.parseInt(br.readLine());
switch(choice){
case 1:
if(!(loginName.equals("admin")))
{System.out.println
System.out.println
break;
num= Integer.parseInt(br.readLine());
if(num<=0)
{System.out.print("invalid number");break;
// Create a file.
num= Integer.parseInt(br.readLine());
for(i=0;i<num;i++)
regNo = Integer.parseInt(br.readLine());
name=br.readLine();
intAge = Integer.parseInt(br.readLine());
height =Integer.parseInt(br.readLine());
qualify=br.readLine();
salary =Integer.parseInt(br.readLine());
address=br.readLine();
bgqualify=br.readLine();
bgminage = Integer.parseInt(br.readLine());
bgminheight = Integer.parseInt(br.readLine());
bgmaxheight = Integer.parseInt(br.readLine());
bgminsalary =Integer.parseInt(br.readLine());
bgmaxsalary =Integer.parseInt(br.readLine());
System.out.print("\n");//print blankline
// Write to file.
fout.write(fmt1+"\r\012");
fout.close();
System.out.println("File is created");
break;
case 2:
if(!(loginName.equals("admin")))
{System.out.println
("Sorry! You have No Access");
System.out.println
break;
num= Integer.parseInt(br.readLine());
if(num<=0)
{System.out.print("invalid number");break;
num= Integer.parseInt(br.readLine());
for(i=0;i<num;i++)
regNo = Integer.parseInt(br.readLine());
name=br.readLine();
intAge = Integer.parseInt(br.readLine());
height =Integer.parseInt(br.readLine());
System.out.println("Enter bride's qualification:");
qualify=br.readLine();
salary =Integer.parseInt(br.readLine());
address=br.readLine();
bgqualify=br.readLine();
bgminage = Integer.parseInt(br.readLine());
bgmaxage = Integer.parseInt(br.readLine());
bgminheight = Integer.parseInt(br.readLine());
bgmaxheight = Integer.parseInt(br.readLine());
bgminsalary =Integer.parseInt(br.readLine());
bgmaxsalary =Integer.parseInt(br.readLine());
System.out.print("\n");//print blankline
// Write to file.
fout1.write(fmt9+"\r\012");
fout1.close();
break;
case 3: snum=0;
searchRegNo = Integer.parseInt(br.readLine());
while(sc1.hasNextInt())
regNo = sc1.nextInt();
name = sc1.next();
intAge= sc1.nextInt();
height= sc1.nextInt();
qualify = sc1.next();
salary= sc1.nextInt();
address = sc1.next();
bgqualify = sc1.next();
bgminage = sc1.nextInt();
bgmaxage = sc1.nextInt();
bgminheight = sc1.nextInt();
bgmaxheight = sc1.nextInt();
bgminsalary= sc1.nextInt();
bgmaxsalary= sc1.nextInt();
if(regNo==searchRegNo)
fmt3.format("\tName: %10s",name);
System.out.println(fmt2);
System.out.println(fmt3);
System.out.println(fmt4);
if(snum>0)
System.out.println("Search is completed");
else
System.out.println("Search is completed- No match");
fin1.close();
break;
snum=0;
minAge = bgminage;
maxAge = bgmaxage;
minHeight = bgminheight;
maxHeight = bgmaxheight;
while(sc2.hasNextInt())
regNo = sc2.nextInt();
name = sc2.next();
intAge= sc2.nextInt();
height= sc2.nextInt();
fmt2.format("%2d.\tRegNo : %8d",snum,regNo);
fmt3.format
System.out.println(fmt2);
System.out.println(fmt3);
if(snum>0)
System.out.println("Search is completed");
else
fin2.close();
break;
case 5:snum=0;
while(sc3.hasNextInt())
{
regNo = sc3.nextInt();
name = sc3.next();
intAge= sc3.nextInt();
height= sc3.nextInt();
qualify = sc3.next();
salary= sc3.nextInt();
address = sc3.next();
bgqualify = sc3.next();
bgminage = sc3.nextInt();
bgmaxage = sc3.nextInt();
bgminheight = sc3.nextInt();
bgmaxheight = sc3.nextInt();
bgminsalary= sc3.nextInt();
bgmaxsalary= sc3.nextInt();
fmt7.format("Bride Id: %8d\n BrideName: %10s\n Age: %2d\n Height: %4d\n Brides
Qualification: %7s\n Brides Salary: %10d\n Brides Address: %10s\n Bridegrooms
Qualification: %7s\n Bridegrooms min age: %3d\n Bridegrooms max age: %3d\n
Bridegroomsmin height: %4d\n Bridegroomsmax height: %4d\n Bridegrooms min salary:
%10d\n Bridegrooms max salary:
%10d\n",regNo,name,intAge,height,qualify,salary,address,bgqualify,bgminage,bgmaxage,bgmin
height,bgmaxheight,bgminsalary,bgmaxsalary);
System.out.println(fmt7);
System.out.println("End of list");
fin3.close();
break;
case 6:
if(!(loginName.equals("admin")))
{System.out.println
System.out.println
break;
num= Integer.parseInt(br.readLine());
if(num<=0)
{System.out.print("invalid number");break;
// Create a file.
num= Integer.parseInt(br.readLine());
for(i=0;i<num;i++)
regNo = Integer.parseInt(br.readLine());
Bage = Integer.parseInt(br.readLine());
Bheight =Integer.parseInt(br.readLine());
qualify=br.readLine();
salary =Integer.parseInt(br.readLine());
address=br.readLine();
System.out.print("\n");//print blankline
// Write to file.
fout6.write(fmt5+"\r\012");
fout6.close();
System.out.println("File is created");
break;
case 7:
if(!(loginName.equals("admin")))
{System.out.println
break;
num= Integer.parseInt(br.readLine());
if(num<=0)
{System.out.print("invalid number");break;
// Create a file.
num= Integer.parseInt(br.readLine());
for(i=0;i<num;i++)
regNo = Integer.parseInt(br.readLine());
name=br.readLine();
Bage = Integer.parseInt(br.readLine());
Bheight =Integer.parseInt(br.readLine());
salary =Integer.parseInt(br.readLine());
address=br.readLine();
System.out.print("\n");//print blankline
// Write to file.
fout16.write(fmt25+"\r\012");
fout16.close();
System.out.println("File is created");
break;
case 8: flag=false;
break;
default:System.out.println("Wrong Choice!!");
System.out.println("Program is over");
}
CONLUSION:
The Marriage Bureau system is maintained
the information of brides and bridegrooms. It makes a matching between brides
and bridegrooms depending on their requirements. The system provides facility to
insertion of records. Search facility is provided to search for the information in the
file. The system makes a matching between bride’s and bridegroom’s requirement.
The system provides security through login and password .Here, only matching of
bridegroom to bride is arranged. We can also can match bride to bridegroom.
BIBLIOGRAPHY:
www.wikipedia.org
http://www.geeksforgeeks.org/
http://stackoverflow.com/