This is what I was given:
The number of passes is one less than the number of items. In the example below, 5 names are being sorted
therefore 4 passes will be required to complete the sort.
The bubble sort compares the 1st and 2nd values and swaps them if not in order, it then compares the 2nd and 3rd
values…..contin uing the process until the next-to-last and last values are compared. After one pass the bottom
...
User Profile
Collapse
Profile Sidebar
Collapse
nc629
Last Activity: Apr 4 '16, 04:16 PM
Joined: Dec 3 '15
Location:
-
How do I alphabetize words?
-
How do I use an array? -
I got the card numbers and suits to work, but I still don't know how to use an array to make the numbers stop repeating.Leave a comment:
-
-
I've been on this project for weeks and I can't figure out anything. The only thing I can think of is assigning a string to every number and making the random number not repeat itself, but that doesn't include any division.Leave a comment:
-
how do you shuffle a deck of cards?
Using integer and modulus division, determine how a deck of 52 cards can be represented by randomly generating 52 number. Each number should have a numeric value and a suit (ex: 4 of clubs)
No activity results to display
Show More
Leave a comment: