You are requested to write a program according to the following specification: 1. Create a list...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
You are requested to write a program according to the following specification: 1. Create a list that contains minimum 12 characters 2. Initialize the list with random characters from alphabetical characters. 3. Sort the characters in the list as follows: a. find the smallest character in the list and then move it to the first position. b. Keep doing step a for all characters by finding the smallest character and moving it to the second position and so on till all the characters in the list are sorted. To answer question 1, you need to do the following: 1. Write an algorithm for the sorting process you will follow as described in steps a and b above. 2. What sorting algorithm did you use? 3. Implement the algorithm using OUBuild script following the above steps. 4. Provide 3 screenshots, one for the code, one for the initial list before sorting, and one for the list after the sorting is done. Example: (Note: Make sure to use different list than the one used in the example below when you answer your question). BA AB CD C BEBDE A A BBBBC C D DEE Unsorted List Sorted list You are requested to write a program according to the following specification: 1. Create a list that contains minimum 12 characters 2. Initialize the list with random characters from alphabetical characters. 3. Sort the characters in the list as follows: a. find the smallest character in the list and then move it to the first position. b. Keep doing step a for all characters by finding the smallest character and moving it to the second position and so on till all the characters in the list are sorted. To answer question 1, you need to do the following: 1. Write an algorithm for the sorting process you will follow as described in steps a and b above. 2. What sorting algorithm did you use? 3. Implement the algorithm using OUBuild script following the above steps. 4. Provide 3 screenshots, one for the code, one for the initial list before sorting, and one for the list after the sorting is done. Example: (Note: Make sure to use different list than the one used in the example below when you answer your question). BA AB CD C BEBDE A A BBBBC C D DEE Unsorted List Sorted list
Expert Answer:
Answer rating: 100% (QA)
import random used for random assign of value def displaycharacters function to display list for i i... View the full answer
Related Book For
Posted Date:
Students also viewed these programming questions
-
Write a program according to the specifications found below, that: Compresses a text file into a Huffman-encoded file, generating the symbol frequency file for that particular text file Decodes a...
-
Write a program according to the specifications found below, that: compresses a text file into a Huffman-encoded file, generating the symbol frequency file for that particular text file decodes a...
-
You are asked to write a program to check if the HTML tags in a given file are nested correctly or not. This problem is similar to the example of proper matching of { ( [ ] ) }, but now you will deal...
-
A force of 24N is applied to a wrench which is 0.4m in length. If the force is applied at an angle of 15 degrees, find the torque in N-m. Round off to two decimal places.
-
Haives Manufacturing Company (HMC) bases its fixed overhead rate on practical capacity of 80,000 units per year. Budgeted and actual results for the most recent year follow: Required: Calculate the...
-
Find the indicated length. Find HJ. H -52 J 30 K
-
(a) identify any outliers (b) draw a modified box-and-whisker plot that represents the data set. Use asterisks (*) to identify outliers. 75 78 80 75 62 72 74 75 80 95 76 72
-
Selected account balances and transactions of Alpine Manufacturing Co. follow: May Transactions: a. Purchased raw materials and factory supplies on account at costs of $45,000 and $10,000,...
-
At 30 June 2022, the share capital of Shire Ltd was comprised of: 1,600,000 ordinary shares issued in 2018 and paid to $2.60 per share less share issue costs of $32,000. 750,000 ordinary shares...
-
Calculate the following four reliability coefficients using the Pearson product-moment correlation formula, correlate the scores to determine the reliability coefficient (xx). Show your work. 3....
-
Many high school students in the Midwest take both the SAT I and the ACT. One year, the distribution of SAT I math scores was approximately normal with mean 510 and standard deviation 110. The...
-
Define amortized cost.
-
What is it called when regional economic integration results in an increase in trade between nations?
-
Shere Hite sent detailed questionnaires (which, according to Hite, took an average of 4.4 hours to fill out) to 100,000 women and received 4,500 replies, 98 percent saying that they were unhappy in...
-
What is the name of the official single currency of the European Union?
-
Describe cost depletion.
-
Identify a general and a specific business problem related to the challenges of digital transformation in retail. Describe the general problem using citations and support.
-
The Cholesterol Level data sets give cholesterol levels of heart attack patients. Cholesterol measures are taken 2, 4, and 14 days aft er a patient has suffered a heart attack. Is there a significant...
-
In Worked Example 9.2, make the process method a default method of the Sequence interface. Data from Example 9.2, n this Worked Example, we investigate properties of number sequences. A number...
-
Write a program that prints the product of the first ten positive integers, 1 2 10. (Use * to indicate multiplication in Java.)
-
Modify the selection sort algorithm to sort an array of integers in descending order.
-
December 2007. When she joined, she signed a membership agreement that had a release of liability that stated: 24 Hour. will not be liable for any injury, including, without limitation, personal,...
-
Recall the facts in Leonard v. Pepsico Had this been a contract, would it have been subject to the Statute of Frauds?
-
John J. Williams began working at Delaware Elevator as a branch sales manager in late 2004. The company manufactures components for elevators and installs and repairs elevators. It employs 175 people...
Study smarter with the SolutionInn App