Computers & Internet Logo

Related Topics:

anisylva Posted on Mar 12, 2015
Answered by a Fixya Expert

Trustworthy Expert Solutions

At Fixya.com, our trusted experts are meticulously vetted and possess extensive experience in their respective fields. Backed by a community of knowledgeable professionals, our platform ensures that the solutions provided are thoroughly researched and validated.

View Our Top Experts

Write a program to read a set of real numbers in desending order using bubble sort.

1 Answer

Harrie

Level 3:

An expert who has achieved level 3 by getting 1000 points

Top Expert:

An expert who has finished #1 on the weekly Top 10 Fixya Experts Leaderboard.

Superstar:

An expert that got 20 achievements.

All-Star:

An expert that got 10 achievements.

  • Computers & ... Master 6,746 Answers
  • Posted on Mar 12, 2015
 Harrie
Computers & ... Master
Level 3:

An expert who has achieved level 3 by getting 1000 points

Top Expert:

An expert who has finished #1 on the weekly Top 10 Fixya Experts Leaderboard.

Superstar:

An expert that got 20 achievements.

All-Star:

An expert that got 10 achievements.

Joined: Jan 31, 2009
Answers
6746
Questions
0
Helped
1284408
Points
83153

I have no problem answering questions, but writing a program is a little to much.
More then 35 years ago I had to write these kind of programs because you could not get programs like that on the net. (there was not even a net like we now have)
but you could read everything about bubble sort here: Bubble sort Wikipedia the free encyclopedia

Add Your Answer

×

Uploading: 0%

my-video-file.mp4

Complete. Click "Add" to insert your video. Add

×

Loading...
Loading...

Related Questions:

0helpful
1answer

Thanks FixYa.com for your email 26.12.2012 at 6.20pm. IN Kodak Easyshare albums I rerrange photos & sort by manual order. Then when I close down & reopen my Qosmio notebook the photos revert to...

Hi Ron,
I share your frustration with this lovely "feature" In addition if you set your column sizes differently to the defaults while you are working they will reset as well when you shut off the program.

The only solution I have come up with is to use the manual captions to keep my photos in the order that I want them - I currently have 28060 photos in Easyshare, so it's a big job!

Give some thought to how you want to sequence your shots - if it's
only a few for a specific purpose you can number them (you will need leading zeros though as the captions are sorted as if they are text). IE 1 10 100 20 will be in that order unless you type 001 010 020 100 ...

Also use your Album names cleverly - there is no reason why the same photo cant be in more than one album. For example, there is no reason why a "Photo of Betty at the seaside" cant be placed in all of the following albums simultaneously "Betty" "Holiday snaps" "seaside Pictures" etc
0helpful
1answer

When transfering the media onto the computer, all my videos are completely out of order, why is that so?

Yes - are you using file explorer to view files?
at top of file explorer screen
is a sort option
click on the column that states date modified and it will sort files in ascending or desending order.
It is probably sorting on alphabetical order on the file name at the moment.
0helpful
1answer

Make a program that will accept tthe size of an array (number must be greater than). Enter and fill the array with numbers then sort in descending order (largest to smallest). Display the unsorted and...


coding in C++

#include<iostream.h>
#include<conio.h>
#define max 50

void main()
{
clrscr();
int arr[max],size=0;
int i=0,j=0,temp;
do
{
cout<<"Enter the size of array(less than or equal to 50)";
cin>>size;
} while(size>50);

for(i=0;i<size;i++){
cout<<"Enter a number";
cin>>arr[i];
}


for( i=1;i<size;i++){
for(j=0;j<size;j++){
if(arr[j+1]>arr[j]){
temp = arr[j];
arr[j] = arr[j+1];
arr[j+1] = temp;


}

}
}
cout<<”Array in descending order”;
for(i=0;i<size;i++){
cout<<arr[i]<<"\n";
}
getch();
return 0;
}
0helpful
1answer

Alphabetical order format in MSWord

just highlight the list using your mouse or similar mechanismas if you were going to copy-and-paste them,Then select "Table" from the Word toolbar,
then select "Sort",then click "OK" your menus might have slightly different spellings)
Given the following example:
bread
apples
Zebras
Flora
Fauna
Gorillas
lemurs
Camels

They were sorted to the following using the above method:

apples
bread
Camels
Fauna
Flora
Gorillas
lemurs
Zebras

This also works if the lists has "Bullets and Numbering";
the resulting list will maintain the bullet/number order
(i.e., the numbers won't change;
e.g., in the above example,
if the unsorted "bread" was "1. bread",
then the sorted "bread" would become "2. bread",
and "apples" would become "1. apples", etc).

If you don't like the result,
then hit the "Ctrl" and "z" keys at the same time
to undo the sort.

The above method will NOT work if the to-be-sorted words
are on the same line, as with a comma-separated list
(e.g., bread, apples, Zebras, etc).

Have fun!

If you *do* have intervening stuff, such as images, etc,
then they will be sorted along with the desired words,
but the results may not be what you expect,
and you may have to do a LOT of editing to put things
the way you want, so make sure that the to-be-sorted words are on their own lines with no intervening stuff

0helpful
1answer

HOW TO SORT THE NUMBERS IN JAVA

i have problem refference youtube port 80 ican,t watch youtube
0helpful
1answer

I have a problem in sorting

If your using windows:
Open cmd.exe (program files>accessories>command prompt)
use the sort command in this syntax:

sort "path name and or file name"

you may also use file exports like this for example:

sort birthdays.txt > sorted birthdays.txt (single forward will write over old files and make new ones)
sort birthdays.txt >> sorted birthdays.txt (use double forwards to made amendments to the file)

the "/R" function will reverse the sort order, for example:

sort /R birthdays.txt


thats all, hope this helps. I cant do much else with the information given.

0helpful
1answer

Nikon D70 not showing shots in order as when i take them.

Greetings...

There are a couple of things to look at here...

Your camera settings and your computer file settings...

For the Nikon D70 make sure the file number sequence is set to on...

SET UP MENU (wrench icon)
File Number Sequence: This lets the camera number your images starting at the last shot you made, even if you've formatted your card. I leave this to ON. If you turn this feature off you'll start from 0001.JPG each time...
Are you working on a Mac or PC?
If you are on a PC make sure that the program you are working on is set to sort by name...
If your Nikon was not set to sequence, you will need to rename the files. Nikon has a free program, ViewNX, that will allow you to view, sort and rename image files...
Additionally, on a PC, open Windows Explorer, go to Tools, Folder Options, View, and UN check the 'Hide extension' box...
This allows you to see the naming extension's on you files...
Have a great day....
0helpful
4answers

Excel formula

CHOSE THE PERTICULAR CELL WHERE THE SUM IS GOING TO BE DISPLAYED AND HYPERLINK IT IT WITH SHEET 2
0helpful
2answers

Downloading photos to computer

Many cameras have a "Setup" option where you can specify how the camera names or labels each new photograph. Other buttons or menu options you can look for would be Settings, File Names probably under a Menu option.

The other thing to consider is, how is your computer sorting the files? By name, date taken, date modified, size? Perhaps buy changing the way you're viewing the order of the files, you can make it match the order they were taken in.
Not finding what you are looking for?

108 views

Ask a Question

Usually answered in minutes!

Top Computers & Internet Experts

Grand Canyon Tech
Grand Canyon Tech

Level 3 Expert

3867 Answers

Brad Brown

Level 3 Expert

19187 Answers

Cindy Wells

Level 3 Expert

6688 Answers

Are you a Computer and Internet Expert? Answer questions, earn points and help others

Answer questions

Manuals & User Guides

Loading...