Question: use Python programming language Use your new Bubble sort code to do the sorting in ascending order (low to high); do not use Python's sort()
Use your new Bubble sort code to do the sorting in ascending order (low to high); do not use Python's sort() method to sort the list L. Your program should do the following things: - Print out your name and date/time of the run (same as Assignment #1) - Prompt the user for input values for N and S, where N is the length of the Python List and S is the random number seed. Print out the values of N and S back to the user. For this assignment, please use a value of 55 for N. - Use the Python random module to generate N random numbers in the range [0..99] using the seed S (input from the user) and assign them to the list L. - Print out to the screen the unsorted list 10 numbers per line. - Sort the list using your new Bubble sort code. - Print out to the screen the sorted list 10 numbers per line
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
