What would be the state of the following list after each of the first four passes in a Bubble sort, sorting into ascending sequence?
(a) 65, 34, 28, 68, 52, 21

Answers

Answer 1

Answer:

21,28,34,52,65,68

Explanation:

Answer 2

Following are the Python program to Bubble sort the given array value.

Program:

def sort(l):#defining the a method sort that takes list value in parameter

   for n in range(len(l)-1, 0, -1):#defining a loop that counts list value and performs the swapping

       for i in range(n):#defining another loop that counts range of list

           if l[i] > l[i + 1]:#defining if block that check list number value

               l[i], l[i + 1] = l[i + 1], l[i]#performing the swapping

l=[ 65, 34, 28, 68, 52, 21]#defining a list l that holds integer value

print("Unsorted list: ")#print message

print(l)#print list value

sort(l)#calling the sort method

print("Sorted Array: ")#print message

print(l)#print sorted list value

Output:

Please find the attached file.

Program Explanation:

Defining the method "sort" that takes list value "l" as a parameter, and defines a loop that counts list values and performs the swapping.Inside the loop, another loop is defined that counts the range of the list and uses a conditional statement.In this case, it uses an if block that checks the list number value and performs the swapping.Outside the method, a list "l" that holds integer values is used, and the print method that calls and prints its value.

Find out more about the sorting here:

brainly.com/question/18568184

What Would Be The State Of The Following List After Each Of The First Four Passes In A Bubble Sort, Sorting

Related Questions

Assignment: Earth’s Surface Exploration

Answers

Answer:

Stop waiting until the due date

Explanation:

Why you always wait until the last minute to turn in yo assignments


2 A_______
uses graphics or pictures to help the user navigate and
access programs

Answers

Answer:

the interface

Explanation:

Compare the different specialties of video game design in which a video game designer can concentrate.

Answers

Answer:

design animators, visual effects, 3d animators

Explanation:

You need both designers and programmers.

Answer:

A game can't be created without both the designer and programmer working closely together from start to finish. Game designers are responsible for the overall creative vision of the game while programmers have the technological know-how to implement the game designers' ideas and bring them to life using computer code.

Explanation:

:)

Helpppppp What is telnet?
internet protocol that allows one to access newsgroups
internet protocol that is the foundation for online data communication
internet protocol that connects to a computer remotely
internet protocol that loads a local file from a network onto a computer

Answers

C. internet protocol that connects to a computer remotely

In one to two sentences, describe how to create a new tab.

Answers

Answer:

First you could move your cursor to the right and click on the button that looks like this +    

Or you can press ctrl+T and make a new tab

Explanation:

Hope this help you!

Each Main Tab in the Ribbon has different Groups containing icons.
True Or False

Answers

Answer:

i think true

Explanation:

My notifications keep glitching and saying i got messages
But they dry

Answers

Answer: just reset the phone

Explanation: if it keeps doing that then you have some app that's not supposed to be there

Which layer of the TCP/IP model is concerned with the physical transportation and delivery of network data?

application

network access

internet

transport

Answers

Answer:

network accsses

Explanation:

Answer:

Network Access

Explanation:

Lifecycle environmental assessment is based on the important realization that

Answers

Answer: Life cycle impact assessment (LCIA) refers to the steps that assess the type and extent of environmental impacts that may arise quantitatively based on data collected in the LCI.

Explanation:

Type the correct answer in the box. Spell all words correctly.
How is it possible to access data from any location?
Storing data on the _________ enables access from any location.

Answers

Answer:

Storing data on the cloud enables access from any location.

Explanation:

Answer:

the answer is cloud becus i get it right

Explanation:

True False Technology Type The 6x6 rule means to keep all objects smaller than 6 inches tall and 6 inches wide. You can set the duration of an animation. Most presentation software lets you post and share presentations online. You cannot change the direction of the transition. A slide can contain a link to another slide, another document, or a Web page.

Answers

Answer:

Follows are the true and false statement:

Explanation:

The true statements:

This slide may include a path to a specific slide, paper, or web browser.  

The length of the animation could be determined.  

Many apps for demonstrations enable you to post and distribute online demonstrations.  

The false statements:

Every course of the transformation could not be changed.  

The with 6x6 rule, all objects are kept smaller than 6 inches tall and 6 inches wide.

Which of the following are examples of packages you can import and use classes from in java?

Choose all options that apply.


A. Main.main

B. java.util

C. java.double

D. java.int

E. edhesive.shapes

Answers

it’s D java. int i think

Introduction:

Java is a computer programming language. A computer programmer may use package in java which is a mechanism to encapsulate a group of classes and then import it to sub package interfaces.

Explanation:

These package help to prevent the issues of naming conflicts. The examples of packages which can import and use classes from in java are

Conclusion:

A. Main.main

B. Java.util

D. java.int

Learn more at https://brainly.com/question/17882992

When determining the cost of an item, the seller will often analyze the demand as well as the supply before setting the price of the blank
.

Answers

Answer:

The price of a commodity is determined by supply and demand. therefore the answer is COMMODITY. that other person is wrong

Answer:  The correct answer is Commodity

Explanation:  This answer is confirmed correct.

Commodity pricing is established based on supply and demand.

Which is the best description of the laws governing IT professionals?

Answers

Answer: D, Most laws are directed at the information, data, or intellectual property rather than the IT professional.

Explanation:i just took the test

Your school is hosting a diving contest, and they need a programmer to work on the scoreboard! Your job is to calculate each diver's total after the three judges hold up their individual scores. Write the function calculate_score which takes a tuple of three numbers from 0 to 10 and calculates the sum. A perfect dive is worth 30 points, a belly flop is worth 0. For example: calculate_score((10, 10, 10)) # => 30 calculate_score((9, 9, 6)) # => 24

Answers

Answer:

def calculate_score(setss):

    num1, num2, num3= setss

    if num1 >= 0 and num1 <=10 and num2>= 0 and num2<=10 and num3>= 0 and num3<=10:

         print(num1+ num2+num3)

    else:

         print("Out of range")

Explanation:

I've added the full source code as an attachment, where I used comments as explanation

What type of data is the result of each of the following lines of code?
str(2.34)

int('2')

float(2)

Answers

Answer:

snag

Explanation:

What is a feature of webmail

Answers

Answer:

Webmail allows the users to access their emails as long as they have access to an Internet connection and a web browser. This also means that the user cannot read an old email or draft a new email offline.

You have a friend that says she is interested in going into web development. She is very knowledgeable in terms of technology and digital media, but she is not sure if she has the personality and character traits that would help her succeed in the job. She knows that you are educated in this area, so she has come to you for help. What questions would you ask her to determine whether or not she has the necessary traits to be a good candidate for a career in web development? Keep in mind at least three important traits that a web developer should have.

Answers

Answer:

She should be aware several social media spectators are going to watch her content. She will get exposed on the Internet.

Explanation:

She should be aware several social media spectators are going to watch her content. She will get exposed on the Internet.

She should think before saying anything as one of his fans may complaint about her content to the police if she makes a joke about shooting up a place.

She has to be careful with his words as this may lead to termination from the job.

Is she a patient person? The customer might nitpick little things and make her change them or make her redo the entire website completely multiple times. If she's not patient it'll be difficult for her to handle customers like that.

Is she really good at listening to others? She'll need to be good at following instructions and listening to what people want to creat what they want easier.

Is she detail oriented? If she is not then it's likely she won't mind if her work is kind of sloppy but the customer is highly likely to complain, resulting in punishment from her employer.

hope this helps!

Reflect on the questions below.

1.) Why do some people resist help from others?

2.) Is it useful to work separately at some point in time during pair programming?

3.) How is pair programming beneficial?

4.) In pair programming, how can we better work together?

Answers

Answer:

Why do some people resist help from others? Because they fear that their ideas might be rejected.

Is it useful to work separately at some point in time during pair programming? Yes, it is helpful because one can do coding while the other one is navigating or doing something else, it allows the pair to work faster and more efficient.

How is pair programming beneficial? It is beneficial because you can cover more stuff with the help of other people that what you would cover by yourself.

In pair programming, how can we better work together? By communicating with each other, discovering our strengths and working on our weaknesses. 

Explanation:

I don't even understand what I'm supposed to do.

Assignment/ Question
Alex is the new office manager at a small advertising firm. One responsibility is to manage the technology being used by the employees. However, it turns out that they have been using outdated software and could use some upgrades! Before launching a campaign to modernize the office software, Alex needs to know exactly what kinds of software to recommend, so a survey will be distributed to find out what common file types the employees use. Please help by explaining what a file type is, what the different kinds are, and what each one does best. Write a paragraph of at least five sentences that Alex can include at the top of the survey.
Alex collects the survey sheets and combines the results. Now your expertise is needed! Please fill out the file content that matches the file type, as well as recommending a particular piece of software.

Answers

Answer:

i tried but i can figure it out

Answer:

You have to fill into the table what the file type and recommendations are (for example, .xls is a spreadsheet and Excel is the software is the recommendation).  Hope that helps a bit!

Explanation:

Select the correct answer.

What is the drawback of the linear model?

A. communication is only in one direction

B. too much noise is created

C. no feedback is sent on receiving the message

D. long travel between the sender and the receiver

I NEED this asap
20 points

Answers

long travel between the sender and the receiver

Answer:

D. long travel between the sender and the receiver

Explanation:

what is a document you can create with word processing software________?

Answers

Answer:

I think like Microsoft Word, Google Docs/Slides, or maybe other Microsoft writing services.

Explanation:

hope this helps!

Which phrase best describes a scenario in Excel 2016?

Answers

Answer:

what are the phrases?

Explanation:

A user left a comment. Which best describes where will it be seen?

Answers

Answer:

IN the comment section usually at the bottom

Explanation:

Answer:

The comments section, usually left under the question answered, or being asked.

Explanation:

What era did the television occurred in

Answers

Answer:

roughly from the late 1940s through the late 1950s.

Explanation: hope this helps :)

Answer:

The first Golden Age of Television is the era of live television production in the United States, roughly from the late 1940s through the late 1950s.

Explanation:

modern warfare players here lol

Answers

Answer:

The answer to this is: lol

Explanation:

Answer:

Gimme Dat UserName

Mine                 is            meterhopper

Explanation:

The implementation stage of the SDLC _____.


involves describing the desired functionality of the system


involves establishing an overview of the project goals


involves putting the system into production so users can begin to perform real business operations with the system


involves analyzing end-user business requirements in order to refine project goals

Answers

Answer:

d. involves analyzing end-user business requirements in order to refine project goals

Explanation:

In the software development life cycle, the implementation stage is the stage where the computer programmers begin the actual coding of the application required by the end-user. At this stage, the developer takes into account the needs and specifications of the customer.

For example, if the end-user wants a software application that can track payment records, the researcher at this stage begins using the right software to code programs that can effect this function.

What is the main reason to create flash cards?
O to record information to commit to memory
O to place main ideas on a graphic organizer
to show how concepts relate to each other
to identify any questions on the material

Answers

the main reason it to create flash card is the first one

The main reason to create flash cards is to record information to commit to memory.

What is flash card?

The term flash card is known to be a small card that is often made and it is one that contains words, numbers, or pictures that one can learn with.

Conclusively, note that a key  reason to create flash cards is to record information to commit to memory as one can be able to remember easily pictures of what they have learnt.

Learn more about flash cards  from

https://brainly.com/question/16610220

#SPJ2

What are the simularities between the solar eclipse & lunar eclipse?

Answers

Answer:

An eclipse occurs when one celestial object obscures another celestial object. In the case of a solar eclipse, the moon moves between the Earth and the sun, thus obscuring the sun. A lunar eclipse occurs when the Earth moves directly between the sun and the moon. Either type of eclipse can be total or partial

What are some internet hardware components? What is used to make the internet work?

Answers

Answer:

Internet Connection Components and Functions

DSL Modem–

DSL/Broadband Filter.

Firewall and NAT Router.

Computer Firewalls –

ICS (Internet Connection Sharing)-

Network Hub.

Network Switch.

Wireless Access Point.

Other Questions
Which one of the following types of training involves 10-30 minutes ofhigh intensity exercise A line passes through the points(-6,-3) and (6,-3). which of the following points are also on the lineA.(-3,0)B.(6,0)C.(0,-3)D.(-6,0) LOOK AT THE IMAGE ABOVE & SOLVE IT BY SHOWING FULL STEPS! I will mark you brainlist if you show full steps Select the correct answer. How many solutions for x does the following equation have ? 2/3(6x + 6 ) = 4x + 4 Wear lightweight clothes in the_____. Max and Maddy race. Max runs at a speed of 2mph. Maddy runs at a speed of 3mph. If Max takes 3 hours, what is Maddy's speed?Plz answer! OCompleta. Complete the sentences with the correct definite article (el, la, los, las).1. Andy y Janet tienen que encontrarcasa ms colorida del Viejo SanJuan.2.perro de la seora Garcia est en el jardn.3.casas del Viejo San Juan son chay bonitas.4. En el Viejo San Juanedificios son altos.5.ventanas de las casas son amarillas.6. Las paredes ypuertas son muy coloridas.CheckAttempts1/3 What Eastern Woodland Native American groups appeared to have similar names to the Great Lakes? Which of the following represents two molecules of carbon dioxide?C 2O 2CO 22C 2O 22CO 2 Will Mark BrainliestThe table shows the prices of different containers of hot sauce.A 2-column table with 4 rows. Column 1 is labeled Container size with entries 2 ounces, 5 ounces, 12 ounces, 30 ounces. Column 2 is labeled Price with entries 1 dollar and 99 cents, 3 dollars and 95 cents, 8 dollars and 76 cents, 20 dollars and 40 cents.A chef needs 60 oz of hot pepper sauce.Which container size represents the better buy?What will be the total cost of those containers? PLEASE HELP!!! I NEED TO TURN THIS IN IN 5 MINS!!!What belongs in the blank spaces in the equations? What should be dotted on the graphs?. ( Show Your Work!) If h(x) = 20 +5, find h(2) z=45i15.5 what are the imaginary parts Represent the following expressions as a power of the number a (a0):a(a1a2)1 The readings suggest there are certain strategies for pricing new products, which is decidedly more difficult than adjusting prices to existing products. The new product pricing approaches are:SkimmingPenetrationEveryday low pricesThe pricing approaches discussed for existing products are:Cost plusMarkupMarkdownOdd-even pricingPrestige pricingPrice liningDemand backward pricingLeader pricingSealed bid pricingGoing-rate pricingPrice bundlingCaptive pricingProduct mix pricingTwo-part pricingPromotional pricingThere is no shortage of pricing approaches, and as customers, we are exposed to all of them at some time or another in our purchasing processes.Choose one of the pricing approaches and discuss the product, the pricing approach, and why you think it is the most appropriate approach for that particular product given your consumer characteristics. Be sure you understand the definition of your approach before tackling this topic.Many of you will be tempted to use promotional pricing since it is the easiest to demonstrate. So promotional pricing is not "for sale" (pun intended). Pick one of the other approaches for this topic. 2. A line goes through the points, and . (a) What is the slope of the line? Show your work. (b) Write the equation of the line in point-slope form. Show your work. (c) Write the equation of the line in slope-intercept form. Show your work. Answer: Rohini spends 88 of her monthly income. If she saves rs 3420 per month,what is her monthly income ? A is an angle in standard position and satisfies the given conditions. Find the indicated trigonometric function value of A. The terminal side of A is in quadrant II and lies on the line -7x - 5y = 0. Find sec A. A chemist is asked to determine the specific heat capacity of an unknown mineral. The 149-g sample was heated to 92.7C and placed into a calorimeter containing 81.4 g of water at 20.0C. The heat capacity of the calorimeter was 12.8 J/K. The final temperature in the calorimeter was 23.7C. What is the specific heat capacity (in J/gC) of the mineral? Enter to 4 decimal places. Kelly needs to travel 12 miles. Taxi A charges $3.00 plus $0.30 every 1/9 mile. Taxi B charges $3.25 plus $0.20 every 1/9 mile. How much money (in dollars) does kelly save by using taxi B instead of taxi A? (PLEASE HELP ASAP)