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
A group of interrelated resources acting together according to a plan to accomplish the goals of the records and information man
Verizon [17]

Answer: Record system

Explanation:

 The record system is one of the type of information storage system that stored all the records or data in the form of management system.

  • We can also retrieve the our data or information by saving it in the system so that we can use that specific data for future use.
  • It also helps in ensuring the data integrity and providing an efficient security to our data or information in the system.

 According to the given question, record system is one of the information management system that helps in accomplished the goals in the form of record.

 Therefore, Record system is the correct answer.

8 0
4 years ago
How is your day going who wants to hit <br><br><br><br> Jk, go find someone else.
kap26 [50]
Lol my days been hectic wby. I’ve been studying
3 0
3 years ago
How do you make a triangle on art.kano.com
blsea [12.9K]

Umm, I guess you just try to do one? I don't know.. Sorry if I couldn't help out.

I believe you can do it!

7 0
3 years ago
Read 2 more answers
What does firewall do
Bogdan [553]

Answer:

help

Explanation: to make people blocked on school computer

4 0
3 years ago
Wich of the following is true about how your skill set relates to a future career
larisa [96]

The statement which is true about how your skill set relates to a future career is: D. Skills from part-time jobs and volunteer work may prove beneficial in future jobs.

<h3>What is a career field?</h3>

A career field can be defined as a series of sequential jobs that use similar skills, and they typically lead to the short and long-term career goals of an individual such as an employee.

<h3>What is a skill acquisition plan?</h3>

A skill acquisition plan can be defined as a written plan that is used to outline the goals, objectives, materials, teaching methods, and data collection techniques for teaching trainees or employees, a specific skill or set of skills.

This ultimately implies that, skill acquisition plans include all of the following:

  • Goals
  • Objectives
  • Materials
  • Data collection

In conclusion, we can infer and logically deduce that the statement which is true about how your skill set relates to a future career is that skills you acquired from part-time jobs and volunteer work may prove beneficial in future jobs.

Read more on skill acquisition plans here: brainly.com/question/15352575

#SPJ1

Complete Question:

Which of the following is true about how your skill set relates to a future career? (1 point)

Employers like to hire people with only full-time job experience.

Employers consider subject-specific skills for new positions.

Skills learned in high school should not be included.

Skills from part-time jobs and volunteer work may prove beneficial in future jobs.

5 0
2 years ago
Other questions:
  • A(n) _______________ supplies one of the most critical aspects of docking stations, but in a smaller, more portable format: supp
    15·1 answer
  • 12. Which of the following is a complex formula?
    13·2 answers
  • What considerations have to be kept in mind with JPEG
    10·1 answer
  • Which of the following tasks requires software? A Writing a paper on the history of Aztec sun godsB Creating a photo collage for
    9·1 answer
  • Which standard is commonly used on the Internet to represent non-numeric data?
    14·1 answer
  • Which of the following is NOT a good idea to do after you change the root password?
    12·1 answer
  • What is an identifier? Give an example of an identifier.
    13·1 answer
  • What is call by reference in function of c​
    13·1 answer
  • A ____ error occurs when an instruction does not follow the grammar of the programming language
    6·1 answer
  • Jenny's needs to buy a computer to create word documents, make presentations, listen to music, and watch movies and videos. Whic
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!