Answered step by step
Verified Expert Solution
Link Copied!

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 10 places files, using the program and record the sorting runtime for each one (you will
obtain 10 runtimes in total).
Plot the runtimes of the program onto a box and whisker diagram.
In a small paragraph, of about 3 lines, discuss your findings.
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Advances In Databases And Information Systems 23rd European Conference Adbis 2019 Bled Slovenia September 8 11 2019 Proceedings Lncs 11695

Authors: Tatjana Welzer ,Johann Eder ,Vili Podgorelec ,Aida Kamisalic Latific

1st Edition

3030287297, 978-3030287290

More Books

Students also viewed these Databases questions