Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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 Python programming language image text in transcribed
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

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

The Manga Guide To Databases

Authors: Mana Takahashi, Shoko Azuma, Co Ltd Trend

1st Edition

1593271905, 978-1593271909

More Books

Students also viewed these Databases questions

Question

3. Existing organizations and programs constrain behavior.

Answered: 1 week ago