Exp_3 - ; Variable and array definition SIZE1 DB 15 LIST1...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
EE3751 – Fall 2003 Experiment # 3 In this experiment you are going to write a program to merge two arrays called LIST1 and LIST2 and into a third array called FINAL_LIST. The information read from LIST1 and LIST2 should be stored into FINALLIST in ascending order, see example below: LIST1 DB 1,4,5,6,8,9 LIST2 DB 0,2,3,7 FINALLIST DB 0,1,2,3,4,5,6,7,8,9 Two variables named SIZE1, and SIZE2 define the size of both LIST1 and LIST2 respectively. Note that the sizes of the arrays may be different.
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: ; Variable and array definition SIZE1 DB 15 LIST1 DB ADEGHIJNPQSUVXY SIZE2 DB 11 LIST2 DB BCFKLMORTWZ FINALLIST DB 50 DUP(?) Note: Make sure your program works in the case when both LIST1 and LIST2 have elements of equal value. Also assume that both LIST1 and LIST2 have their elements stored in ascending order. You will be given a different set of data in the lab, so make sure you test your program with other data sets....
View Full Document

This note was uploaded on 01/24/2012 for the course EE 3751 taught by Professor Desouza during the Spring '04 term at LSU.

Ask a homework question - tutors are online