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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started