1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Nezavi [6.7K]
2 years ago
12

Descending selection sort with output during execution

Computers and Technology
1 answer:
zvonat [6]2 years ago
6 0

Taking the input as a string, slicing it with a space as the delimiter, turning the divided portion into an integer, and then appending to the list.

<h3>Explanation:</h3>

def selection_sort_descend_trace(numbers):

i=len(numbers)

print("Output: ")

for num in range(0,i-1):# traversing from 0 to N-2, total N-1 iterations

val=numbers[num]

start=num+1

end=i

t=0

for j in range(start,end):

if(val<numbers[j]):

remember=j

val=numbers[j]

t=1

if(t==1):# swaping onlf if greater number is available

temp=numbers[num]

numbers[num]=val

numbers[remember]=temp

for p in range(i):# printing

print(numbers[p],end=' ')

print("\n")

if __name__ == "__main__":

print("Enter the integers separated by space: ")

numbers=[int(x) for x in input().split(' ')]

selection_sort_descend_trace(numbers)

For further details about the explanation, click here:

brainly.com/question/15728245

#SPJ1

You might be interested in
TRUE or FALSE: CSS is used to style web pages.
nirvana33 [79]

Answer:

true

Explanation:

HTML is the structure and CSS is the design

3 0
3 years ago
State<br> any three (3) reasons why users attach speakers to their computer?
lidiya [134]

Answer:

To complete the computer setup, to hear audio, to share audio.

Explanation:

A computer is not <u>really</u> complete without speakers.

So that you can actually hear the computer's audio.

So that you can have multiple people hear the same audio. (Headphones do not do this)

4 0
3 years ago
The development of various technologies led to many historic events. Use information from the Internet to describe one major his
kati45 [8]

Answer:

The Compass

Explanation:

The compass was one of the foremost technological inventions that forever changed sea navigation.

Before its invention, sailors used landmarks to navigate and when it got dark, they had to stop and wait for daybreak before resuming their journey. Some other people used the inaccurate means of the sun and stars to navigate at sea.

But with the invention of the compass, all these problems were a thing of the past because the compass could provide direction despite the weather or time of the day and as a result, it opened more trade routes and assisted in the Age of Discovery.

4 0
3 years ago
Which statement correctly describes the difference between an IP address and a MAC address for a
Citrus2011 [14]

The statement that correctly describes the difference between an IP address and a MAC address for a  specific device is that the IP address can change, but the MAC address always stays the same.

For better understanding, let us explain what the  IP address and a MAC address means

  • IP address simply mean Internet protocol address , it is a distinct string of numbers that is often separated by full stops that shows each computer using the Internet Protocol to link or communicate over a network.
  • MAC address is simply regarded as a A distinct number also as it shows a device or computer that is linked or connected to the internet.
  • One of the major difference between a MAC address and an IP address? is that the IP address gives the location of a device on the internet but the Mac address identifies the device connected to the internet.  

from the above, we can therefore say that the answer The statement that correctly describes the difference between an IP address and a MAC address for a  specific device is that the IP address can change, but the MAC address always stays the same, is correct

learn more about  IP address and a MAC address  from:

brainly.com/question/6839231

5 0
2 years ago
What is the total resistance in a circuit that contains three 60 ohm resistors connected in a series?
nignag [31]
I think it is D 180
5 0
4 years ago
Read 2 more answers
Other questions:
  • Complete main() to read dates from input, one date per line. Each date's format must be as follows: March 1, 1990. Any date not
    9·1 answer
  • A series of inventions led to the creation of the electronic digital computer shortly after this war..
    12·1 answer
  • You have no control over who view your post
    10·1 answer
  • Most internet connections use what transmission
    13·2 answers
  • Assume that scotus is a two-dimensional character array that stores the family names (last names ) of the nine justices on the S
    6·1 answer
  • Describe an application where a parallel circuit might work better than a series circuit.
    15·1 answer
  • There are many opportunities for unscrupulous people to break information system security. Of the five components in an informat
    6·2 answers
  • Use C++:
    9·1 answer
  • All of the following statements concerning project portfolios are true EXCEPT: ​ a. The projects in a portfolio are managed as a
    6·1 answer
  • 1. Write a 400-500 word research report about Burke High School.
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!