Module 2 code reflection

.docx

School

Southern New Hampshire University *

*We aren’t endorsed by this school

Course

300

Subject

Computer Science

Date

Dec 6, 2023

Type

docx

Pages

2

Uploaded by CountIron10886

This program takes data from municipal government feed containing bids on properties up for auction. This program takes and sorts this data in ascending order. 1 sorting method is selection sort and the other is a quicksort. The selection sort took more than 10 seconds to complete the sorting process and the quicksort only took a fraction of a second to sort the same data. I didn’t experience much of a challenge with completing the missing code. I did, however, have a lot of trouble with compiling the program. I used a few YouTube tutorials and advice from Stack Overflow to correct the issue. The program starts with creating the variables that will hold the bid data. The system then prepares to collect the bid data and assign appropriate variables for each. The system then loads the information from the CSV file. The data is then split into high and low points, and each is sorted and swapped until the full list is sorted. This process is completed using quick sort. The selection sort is then called and uses a 1 by 1 approach. As the system goes through each element it is compared to the lowest stored element. If the item is smaller then it replaces the element if not it moves on until the entire list is compared. The display then prompts user to select one of the following options to view the information processed in the code written above. 1. Load bids 2. Display all bids 3. Selection Sort bids 4. Quicksort bids 9. Exit
Each selection except for “9” collects the data and time it takes to retrieve and sort the data is calculated and displayed to the user. The program ends with a “Good bye” message to the user.
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help