C Board  

Go Back   C Board > General Programming Boards > C++ Programming

Reply
 
LinkBack Thread Tools Display Modes
Old 04-15-2002, 08:11 PM   #1
lorenzohhh
Guest
 
Posts: n/a
bubble sort in assembly language!!!!!!

Perform a bubblesort in assembly language. At the start of the program, using C/C++ output functions, output a program identifier that includes your name to the screen. (Example: "Bubblesort Program by Jon Lovegren".) Using an assembly language LOOP and C/C++ I/O, create appropriate user prompts and input 10 numbers from the keyboard into an array variable numbers_abc (where abc = your initials). Using the same algorithm you used in the first program, build the bubblesort routine in assembly language and sort the numbers in ascending order. Put the sorted numbers into an array sorted_abc (where abc = your initials). Using an assembly language LOOP and C/C++ I/O, display the both the original unsorted numbers and sorted numbers. Identify each set of numbers and put each set on a single line separated by commas, as shown below.

Unsorted Array: 192, 8236, 10, 7, 456, 99, 1, 17, 213, 99

Sorted Array: 1, 7, 10, 17, 99, 99, 192, 213, 456, 8236
  Reply With Quote
Old 04-15-2002, 08:30 PM   #2
Just because
 
ygfperson's Avatar
 
Join Date: Jan 2002
Posts: 2,502
is this a homework assignment?
this kind of thing can be found all over the net. try the ai site link from the cprogramming.com front page, and follow it to a sorting link.
ygfperson is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to sort a simple linked list using swap-sort method JOCAAN C Programming 24 08-07-2009 11:48 AM
C in UNIX environment; external bubble sort doesn't work stn0091 C Programming 2 05-13-2009 03:25 PM
Psuedo random numbers in a bubble sort. Sir Andus C++ Programming 10 04-09-2007 08:25 PM
bubble sort help. zeromx C Programming 9 10-30-2006 07:37 AM
Bubble sort Lionmane C Programming 5 07-09-2005 11:30 AM


All times are GMT -6. The time now is 03:24 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22