Question: EASY 68K (ASSEMBLY LANGUAGE) 1. Initialize an array [14, 7, 1, 17, 10]. Then Print it out. (2) Find out greatest and least numbers in

EASY 68K (ASSEMBLY LANGUAGE)

1. Initialize an array [14, 7, 1, 17, 10]. Then

Print it out. (2)

Find out greatest and least numbers in this array and print them out in two lines. (3)

Desired output:

14 7 1 17 10 17 1

2. Initialize an array [1, 7, 13, 0, 11, 24, 8].

Load a number from keyboard. (1)

If the number is negative, print out odd elements of the array. Otherwise, print out even elements. Do not forget the commas. (4)

Example output:

1, 7, 13, 11

Or:

0, 24, 8

3. Given an array [3, -1, 0, 4]

Initialize the array. (1)

Print out these elements in ascending order. Do not forget commas and brackets. (6)

Example output:

[-1, 0, 3, 4]

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!