Professional Documents
Culture Documents
PROJECT REPORT
On
Submitted to
Central Board of Secondary
Education In the practical fulfillment
of course “Higher Secondary
Certificate”
Sub: Information Technology
SUBMITTED BY
Mr. Prathmesh Dhanraj Landge
VASUNDHARA ACADEMY,AKOLE
Tal. Akole – 422601 Dist.
Ahemdnagar
Certificate Provide by Ma’am
ACKNOWLEDGMENTS
Before we get into the thick of things I would like to add a few heartful words for who
were parts of this project in numerous ways, people who gave unending support rights the stage
and the project idea was conceived. The four thing things that go to make successful ends ever
are declaration hard work, patience and correct guidance our Principal Miss.Aparna
Shriwastav Madam. Able to timely guidance not only helps in making an effort faithful but also
transform the whole process of learning and implementing into to the enjoyable expertise. I
would like to thank support and guidance of Co-Ordinator Dr. Aditi Phapale Madam And
Prof. Kiran Ambre Sir. I expresses my sincere thanks to the entire faculty member of
Vasundhara Academy Akole. And finally heartfelt appreciations to those countless friends who
made me to delve deeper and deeper into the extent that I know firmly believe that experience is
an attitude, philosophy of life.
INDEX
Sr. No Topics
1 Introduction
4 Source Code
5 Output
6 Advantages
7 Dis-Advantages
8 Future Enhancement
Need:
The code implements a simple phone directory system with basic functionalities
such as adding, searching, deleting, modifying phone numbers, and displaying the
phone directory. It aims to provide a user-friendly interface for managing contact
information.
Contact Management: The primary need is to manage and organize contact
information, including names and phone numbers, in a systematic manner.
Accessibility: The code fulfills the need for users to access and manipulate their
contact information conveniently, providing operations like adding, searching,
modifying, and deleting phone numbers.
Compact Solution: The code offers a compact solution for individuals or small
groups who require a straightforward phone directory without the complexity
of more advanced contact management systems.
Input from Console: Interaction is solely through the console, with user
input acquired using a Scanner. There's no integration with external input
sources or more advanced input methods.
Primitive Data Types: The phone directory stores names and phone numbers as
arrays of strings. It doesn't utilize more advanced data structures or object-oriented
design, keeping the implementation simple.
Fixed Capacity: The phone directory has a fixed capacity determined during
initialization. It doesn't support automatic resizing or dynamic adjustment based on
the number of entries.
Source Code:
import java.util.Scanner;
while (true) {
System.out.println("\nPhone Directory Menu:");
System.out.println("1. Add Phone Number");
System.out.println("2. Search Phone Number");
System.out.println("3. Delete Phone Number");
System.out.println("4. Modify Phone Number");
System.out.println("5. Display Phone Directory");
System.out.println("6. Exit");
switch (choice) {
case 1:
System.out.print("Enter name: ");
String addName =
scanner.nextLine();
System.out.print("Enter phone number: ");
String addPhoneNumber = scanner.nextLine();
phoneDirectory.addPhoneNumber(addName, addPhoneNumber);
break;
case 2:
System.out.print("Enter name to search: ");
String searchName = scanner.nextLine();
phoneDirectory.searchPhoneNumber(searchName);
break;
case 3:
System.out.print("Enter name to delete: ");
String deleteName = scanner.nextLine();
phoneDirectory.deletePhoneNumber(deleteName);
break;
case 4:
System.out.print("Enter name to modify: ");
String modifyName = scanner.nextLine();
System.out.print("Enter new phone number: ");
String newPhoneNumber = scanner.nextLine();
phoneDirectory.modifyPhoneNumber(modifyName,
newPhoneNumber);
break;
case 5:
phoneDirectory.displayPhoneDirectory();
break;
case 6:
System.out.println("Exiting the Phone Directory application.
Goodbye!");
System.exit(0);
default:
System.out.println("Invalid choice. Please enter a number between 1
and 6.");
}
}
}
}
Advantages:
Simplicity: The code is easy to understand and serves its purpose without
unnecessary complexity.
User Interaction: It provides a menu-driven interface, making it user-friendly for
interacting with the phone directory.
Memory Efficiency: The use of arrays for storing names and phone numbers
ensures memory efficiency, especially for a moderate number of entries.
Disadvantages:
Fixed Capacity: The phone directory has a fixed capacity, limiting the number
of entries. Dynamic resizing could enhance flexibility.
Linear Search: Searching, deleting, and modifying operations use a linear
search, which may become inefficient for a large number of entries. Implementing
a more efficient data structure (e.g., HashMap) would improve these operations.
Limited Error Handling: The code lacks extensive error handling,
potentially leading to unexpected behavior if users input invalid data.
Future Enhancements:
Dynamic Resizing: Allow the phone directory to dynamically resize to
accommodate more entries, ensuring scalability.
Improved Searching: Implement a more efficient search algorithm (e.g., binary
search for a sorted directory) to enhance performance.
Error Handling: Incorporate robust error handling to handle invalid user inputs
and unexpected situations gracefully.
File I/O: Integrate file input/output to persist the phone directory data, enabling
data retention across program executions.
Graphical User Interface (GUI): Develop a GUI for a more visually appealing
and user-friendly experience.
These enhancements would make the phone directory more versatile, efficient, and
robust in handling various scenarios.