Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

You are requested to write a program according to the following specification: 1. Create a list that contains minimum 12 characters 2. Initialize the

 

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

Step by Step Solution

3.33 Rating (156 Votes )

There are 3 Steps involved in it

Step: 1

import random used for random assign of value def displaycharacters function to display list for i i... 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

Java Concepts Late Objects

Authors: Cay S. Horstmann

3rd Edition

1119186714, 978-1119186717

More Books

Students also viewed these Programming questions

Question

What was the positive value of Max Weber's model of "bureaucracy?"

Answered: 1 week ago

Question

What are the key elements of a system investigation report?

Answered: 1 week ago