Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Study the scenario and complete the questions that follow: A Map Application for Cartographers: Sorting Part I A group of cartographers approach you to build
Study the scenario and complete the questions that follow:
A Map Application for Cartographers: Sorting Part I
A group of cartographers approach you to build a map application for them. This is a simple application. Your
help is required to make a few design decisions.
Create a C# project using Visual Studio. All programs files created for all questions will be done within this
project. Remember, you will submit both your Visual Studio solution and your project report.
When the cartographers enter data, for example the names of places, into the application, they need a way
to sort these names. One of the cartographers, who was eager to get work started on the application has
already implemented a bubble sort algorithm for this. You disagree with the use of bubble sort, but you want
to provide evidence of its poor performance. Devise a test for bubble sort. You are required to:
Create a program call DemoBubbleSort.cs that will read in a list of names of places from a text file called
places.txt sorts the places in ascending order using bubble sort algorithm, and prints the list to a new text file
in the same format as the input file Your program should prompt the user for the location of the input and
output files
Calculate the runtime of the sorting algorithm in the program note: time the runtime of the actual sorting
algorithm only. Do not include the file IO in this You may obtain the system time at the beginning and end of
the sorting algorithm to calculate this.
Sort each of the places files, using the program and record the sorting runtime for each one you will
obtain runtimes in total
Plot the runtimes of the program onto a box and whisker diagram.
In a small paragraph, of about lines, discuss your findings.
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