Contact and Profile Management System
Phase 1: Contact Management System
Introduction:
The Contact Management System is a console-based application developed in C++. The
system aims to manage contacts using structures to store information about each
contact, including a unique ID, name, phone number, email, and address. The project
utilizes functions to perform essential operations like adding contacts, sorting them by
name, searching for a contact by name, and displaying contacts based on various
criteria.
Structures Used:
1. Address Structure:
\begin{itemize}
\item street [string]
\item city [string]
\item state [string]
\item postalCode [string]
\end{itemize}
2. Contact Structure:
\begin{itemize}
\item id [int]
\item name [string]
\item phoneNumber [string]
\item email [string]
\item address [Address structure]
\end{itemize}
Your system must have at least these functions
\begin{itemize}
\item readContactsFromFile: Reads contact information from a file named \"contacts.txt\" into the system.
\item writeContactsToFile: Writes all contact information from the system into a file named \"contacts.txt\".
\item displayContact: Displays detailed information about a specific contact.
\item displayAllContacts: Displays information for all stored contacts.
\item readContact: Reads input from the user to create a new contact.
\item addContact: Adds a new contact to the system.
\item sortContactsByName: Sorts contacts alphabetically by name.
\item searchContactByName: Searches for a contact by name and returns its ID.
\end{itemize}