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
lesya [120]
4 years ago
6

Descending selection sort with output during execution

Computers and Technology
1 answer:
FromTheMoon [43]4 years ago
3 0

Answer:

Check the explanation

Explanation:

Please find the code down

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)

Taking input as string and splitting with space as delimiter , converting the split part to integer , finally append in the list.

You might be interested in
Which type of boot authentciation is more secure?
xeze [42]
The correct answer would b (C) because all the other ones are not on the list
7 0
3 years ago
Which of the following is used to manage the objects in a database?
kirill [66]

The answer is the B: The Navigation Pane

All the objects in a Microsoft Access database are listed in the Navigation Pane. You can view and manage the categories and groups of objects in the Navigation Pane. You can also hide groups, objects, or the entire Navigation Pane. In addition, you can also use the Navigation pane to sort objects, find objects in a database, and add objects to a custom group.  By default, the navigation pane appears when you open a database in Access.


8 0
3 years ago
Transparency is an important concept in policies related to the handling and use of customer data. Organizations should be trans
Tpy6a [65]

Answer: (C) Response controls

Explanation:

  According to the given question, the response control is not the necessary element while handling the users or customer data as compared to all the other given options that is individual participation, data minimization and the purpose specification.

  • The response control is basically used for exchange the data or any information in an organization but the main disadvantage is that they share all the response and information as they not wait for the request from the users.
  • The all the three other given options expect response control are the important element for handling the customer data as it helps in maintaining the Personal information.  

 Therefore, Option (C) is correct answer.  

6 0
3 years ago
It is important to give the health and safety experience to new or inexperienced workers, including those that have been away fr
Phoenix [80]

Answer:

a. training

Explanation:

"Training" is crucial when it comes to new workers or workers who are coming back after a long vacation or whatever reason. The risk of injuries and making mistakes is high for new workers because they are still adjusting to the company's processes. This is similar to a baby who's learning to walk. The baby makes several slips before mastering the skill. For a worker who has been away from the workforce, training should also be given because that worker needs to freshen up his skills and relearn what he needs to grasp before working.

This situation is especially true to <em>construction workers </em>who work under contractual projects. This means, they always have to be trained every time about their new jobsite before even working.

6 0
3 years ago
Mr. Olgesandravich is proctoring students working at their own pace in an online class. He is generating a spreadsheet that show
strojnjashka [21]
The answer to the given question above would be option A. Based on the given scenario above, the two formats that Mr. Olgesandravich is most likely using is <span>Percentages and date. Hope this is the answer that you are looking for. Have a great day ahead!</span>
6 0
4 years ago
Read 2 more answers
Other questions:
  • Describe the purpose of two types of OpenFlow messages (of your choosing) that are sent from a controlled device to the controll
    13·1 answer
  • Why would you group data in a report? SQL
    9·1 answer
  • Which of the following emerging technologies uses the principle of chromosomes to identify suspects?
    10·1 answer
  • In a complex system, many subsystems interact with one another. How do these systems interact in terms of inputs and outputs?
    10·1 answer
  • Sanford is creating an excel spreadsheet and needs to insert many worksheets to organize his data. What is the limit of the numb
    13·2 answers
  • In a presentation outline, each slide must represent a main point in the outline.
    5·2 answers
  • Consider a classful IPv4 address 200.200.200.200? What is its implied subnet mask? If we take the same address and append the CI
    12·1 answer
  • Select the correct word to complete the sentence
    11·2 answers
  • Write an expression that executes the loop body as long as the user enters a non-negative number.
    5·2 answers
  • Write a c program that asks the user to enter two numbers. the program should use the conditional operator to determine which nu
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!