Answered step by step
Verified Expert Solution
Question
1 Approved Answer
In this project, you will implement a martyrs data structure using sorted doubly circular linked list and 2 vectors. The following figures shows the overall
In this project, you will implement a martyrs data structure using sorted doubly circular linked
list and vectors. The following figures shows the overall data structure:
o The sorted doubly circular linked list contains location records sorted by location in
alphabetical order.
o The location record contains two objects of type vector:
st vector: stores Martyr records sorted by Martyrs name
nd vector: Stores Martyrs records sorted by date.
o The data input for this project will be a martyrs csv attached file btselemcsv
First: Create the data structure above and fill in the data structure from the file btselemcsv
Second: The user will get the first menu Location Menu to choose from:
Location Menu:
An option to insert new location record.
An option to update an existing location
An option to delete an existing location
An option to search for a location record
If the user chooses then the following options appear to the user:
a Martyrs Menu
b Statistics Report
If the user chooses a the following menu appears to the user.
Martyrs Menu: after searchingselecting a location, the user can:
Insert a new martyr record ie create one Martyr record, read its info and add its
information to both vectors inside that location
Update a martyr record
Delete a martyr record
Search for a martyr by name and display hisher information.
If the user chooses b then the following report appears to the user.
Statistics Report:
for the selected location from location Menu, generate and display a summary report that
includes:
a The numbers of martyrs in the selected location.
b Print the Martyrs full information in that location.
c Traverse the vector backward ie start from the latest date back to the earliest and
print the Martyrs full information
d The date that had the minimum number of martyrs.
Third:
The program asks the user if he wants to save the changes to the file, as follows:
Do you want to save the changes to the file?
a Yes
b No
If the user chooses b then the program exits without changing the file.
If the user chooses a:
you will save the updated data structures back to a file in the same format Name Age, Event
location District, Date of death, Gender separated by comma Ask user to select the
folder and file name to save the updated information in
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started